Revision eac9b7b8 test/ganeti.utils.text_unittest.py
b/test/ganeti.utils.text_unittest.py | ||
---|---|---|
639 | 639 |
]) |
640 | 640 |
|
641 | 641 |
|
642 |
class TestFormatKeyValue(unittest.TestCase): |
|
643 |
def test(self): |
|
644 |
self.assertEqual(utils.FormatKeyValue({}), []) |
|
645 |
self.assertEqual(utils.FormatKeyValue({1: 2}), ["1=2"]) |
|
646 |
self.assertEqual(utils.FormatKeyValue({ |
|
647 |
"zzz": "0", |
|
648 |
"aaa": "1", |
|
649 |
}), |
|
650 |
["aaa=1", "zzz=0"]) |
|
651 |
|
|
652 |
|
|
642 | 653 |
if __name__ == "__main__": |
643 | 654 |
testutils.GanetiTestProgram() |
Also available in: Unified diff