Revision 75c866c2 test/ganeti.rapi.rlib2_unittest.py

b/test/ganeti.rapi.rlib2_unittest.py
239 239
          "mode": mode,
240 240
          }
241 241
        op = self.Parse(name, data)
242
        self.assert_(isinstance(op, opcodes.OpMigrateInstance))
242
        self.assert_(isinstance(op, opcodes.OpInstanceMigrate))
243 243
        self.assertEqual(op.instance_name, name)
244 244
        self.assertEqual(op.mode, mode)
245 245
        self.assertEqual(op.cleanup, cleanup)
......
248 248
    name = "instnohZeex0"
249 249

  
250 250
    op = self.Parse(name, {})
251
    self.assert_(isinstance(op, opcodes.OpMigrateInstance))
251
    self.assert_(isinstance(op, opcodes.OpInstanceMigrate))
252 252
    self.assertEqual(op.instance_name, name)
253 253
    self.assertEqual(op.mode, None)
254 254
    self.assertFalse(op.cleanup)

Also available in: Unified diff