Revision 0b6c56bb
b/test/py/ganeti.constants_unittest.py | ||
---|---|---|
156 | 156 |
self.assertFalse(utils.FindDuplicates(constants.CONFD_REPL_STATUSES), |
157 | 157 |
msg="Duplicated confd reply status code") |
158 | 158 |
|
159 |
class TestDiskTemplateConstants(unittest.TestCase): |
|
160 |
|
|
161 |
def testPreference(self): |
|
162 |
self.assertEqual(set(constants.DISK_TEMPLATE_PREFERENCE), |
|
163 |
set(constants.DISK_TEMPLATES)) |
|
164 |
|
|
165 |
def testMapToStorageTypes(self): |
|
166 |
for disk_template in constants.DISK_TEMPLATES: |
|
167 |
self.assertTrue( |
|
168 |
constants.MAP_DISK_TEMPLATE_STORAGE_TYPE[disk_template] is not None) |
|
169 |
|
|
159 | 170 |
|
160 | 171 |
if __name__ == "__main__": |
161 | 172 |
testutils.GanetiTestProgram() |
Also available in: Unified diff