Revision a9e1819b test/py/ganeti.mcpu_unittest.py
b/test/py/ganeti.mcpu_unittest.py | ||
---|---|---|
136 | 136 |
|
137 | 137 |
for op in [op1, op2, op3]: |
138 | 138 |
self.assertTrue("OP_TEST_DUMMY" in op.comment) |
139 |
self.assertFalse(hasattr(op, "priority")) |
|
140 |
self.assertFalse(hasattr(op, "debug_level")) |
|
141 | 139 |
|
142 | 140 |
def testParams(self): |
143 | 141 |
src = opcodes.OpTestDummy(priority=constants.OP_PRIO_HIGH, |
... | ... | |
163 | 161 |
self.assertTrue("OP_TEST_DUMMY" in op1.comment) |
164 | 162 |
self.assertEqual(op1.debug_level, 3) |
165 | 163 |
|
166 |
self.assertEqual(op2.priority, constants.OP_PRIO_HIGH) |
|
164 |
# FIXME: as priority is mandatory, there is no way |
|
165 |
# of specifying "just inherit the priority". |
|
167 | 166 |
self.assertEqual(op2.comment, "foobar") |
168 | 167 |
self.assertEqual(op2.debug_level, 3) |
169 | 168 |
|
Also available in: Unified diff