Revision 0fcd0cad test/ganeti.cmdlib_unittest.py

b/test/ganeti.cmdlib_unittest.py
42 42
from ganeti import objects
43 43
from ganeti import compat
44 44
from ganeti import rpc
45
from ganeti.masterd import iallocator
45 46
from ganeti.hypervisor import hv_xen
46 47

  
47 48
import testutils
......
409 410
            ]
410 411

  
411 412
          alloc_result = (moved, [], jobs)
412
          assert cmdlib.IAllocator._NEVAC_RESULT(alloc_result)
413
          assert iallocator._NEVAC_RESULT(alloc_result)
413 414

  
414 415
          lu = _FakeLU()
415 416
          result = cmdlib._LoadNodeEvacResult(lu, alloc_result,
......
438 439
    alloc_result = ([], [
439 440
      ("inst5191.example.com", "errormsg21178"),
440 441
      ], [])
441
    assert cmdlib.IAllocator._NEVAC_RESULT(alloc_result)
442
    assert iallocator._NEVAC_RESULT(alloc_result)
442 443

  
443 444
    lu = _FakeLU()
444 445
    self.assertRaises(errors.OpExecError, cmdlib._LoadNodeEvacResult,

Also available in: Unified diff