Revision eedf99b5 test/ganeti.cmdlib_unittest.py
b/test/ganeti.cmdlib_unittest.py | ||
---|---|---|
272 | 272 |
class TestClusterVerifyFiles(unittest.TestCase): |
273 | 273 |
@staticmethod |
274 | 274 |
def _FakeErrorIf(errors, cond, ecode, item, msg, *args, **kwargs): |
275 |
assert ((ecode == cmdlib.LUClusterVerifyGroup.ENODEFILECHECK and
|
|
275 |
assert ((ecode == constants.CV_ENODEFILECHECK and
|
|
276 | 276 |
ht.TNonEmptyString(item)) or |
277 |
(ecode == cmdlib.LUClusterVerifyGroup.ECLUSTERFILECHECK and
|
|
277 |
(ecode == constants.CV_ECLUSTERFILECHECK and
|
|
278 | 278 |
item is None)) |
279 | 279 |
|
280 | 280 |
if args: |
Also available in: Unified diff