Revision 32683096 test/ganeti.opcodes_unittest.py
b/test/ganeti.opcodes_unittest.py | ||
---|---|---|
77 | 77 |
{"dry_run": False, "debug_level": 0, }, |
78 | 78 |
|
79 | 79 |
# All variables |
80 |
dict([(name, False) for name in cls._all_slots()])
|
|
80 |
dict([(name, False) for name in cls.GetAllSlots()])
|
|
81 | 81 |
] |
82 | 82 |
|
83 | 83 |
for i in args: |
... | ... | |
95 | 95 |
self._checkSummary(restored) |
96 | 96 |
|
97 | 97 |
for name in ["x_y_z", "hello_world"]: |
98 |
assert name not in cls._all_slots()
|
|
98 |
assert name not in cls.GetAllSlots()
|
|
99 | 99 |
for value in [None, True, False, [], "Hello World"]: |
100 | 100 |
self.assertRaises(AttributeError, setattr, op, name, value) |
101 | 101 |
|
... | ... | |
158 | 158 |
self.assertTrue(opcodes.OpCode not in opcodes.OP_MAPPING.values()) |
159 | 159 |
|
160 | 160 |
for cls in opcodes.OP_MAPPING.values() + [opcodes.OpCode]: |
161 |
all_slots = cls._all_slots()
|
|
161 |
all_slots = cls.GetAllSlots()
|
|
162 | 162 |
|
163 | 163 |
self.assertEqual(len(set(all_slots) & supported_by_all), 3, |
164 | 164 |
msg=("Opcode %s doesn't support all base" |
Also available in: Unified diff