Revision 7a70541e test/ganeti.client.gnt_instance_unittest.py

b/test/ganeti.client.gnt_instance_unittest.py
149 149
        ]), [
150 150
        (action, -1, {}),
151 151
        ])
152
      self.assertRaises(errors.OpPrereqError, fn, [
153
        (0, {
154
          action: True,
155
          constants.DDM_MODIFY: True,
156
          }),
157
        ])
152 158

  
153 159
    self.assertEqual(fn([
154 160
      (constants.DDM_ADD, {
......
190 196
      (constants.DDM_REMOVE, -1, {}),
191 197
      ])
192 198

  
199
    self.assertEqual(fn([
200
      (-1, {
201
        constants.DDM_MODIFY: True,
202
        constants.IDISK_SIZE: 1024,
203
        }),
204
      ]), [
205
      (constants.DDM_MODIFY, -1, {
206
        constants.IDISK_SIZE: 1024,
207
        }),
208
      ])
209

  
193 210

  
194 211
class TestParseDiskSizes(unittest.TestCase):
195 212
  def test(self):

Also available in: Unified diff