Revision c89eb67d test/py/ganeti.cmdlib.cluster_unittest.py
b/test/py/ganeti.cmdlib.cluster_unittest.py | ||
---|---|---|
76 | 76 |
NotImplemented, "", self.enabled_disk_templates) |
77 | 77 |
|
78 | 78 |
|
79 |
class TestGetEnabledDiskTemplates(unittest.TestCase): |
|
80 |
|
|
81 |
def testNoNew(self): |
|
82 |
op_dts = [constants.DT_DISKLESS] |
|
83 |
old_dts = [constants.DT_DISKLESS] |
|
84 |
(enabled_dts, new_dts) =\ |
|
85 |
cluster.LUClusterSetParams._GetEnabledDiskTemplatesInner( |
|
86 |
op_dts, old_dts) |
|
87 |
self.assertEqual(enabled_dts, old_dts) |
|
88 |
self.assertEqual(new_dts, []) |
|
89 |
|
|
90 |
|
|
79 | 91 |
if __name__ == "__main__": |
80 | 92 |
testutils.GanetiTestProgram() |
Also available in: Unified diff