Revision 0a9a0e5a test/ganeti.utils.algo_unittest.py

b/test/ganeti.utils.algo_unittest.py
229 229
                      None, ""])
230 230

  
231 231

  
232
class TestInvertDict(unittest.TestCase):
233
  def testInvertDict(self):
234
    test_dict = { "foo": 1, "bar": 2, "baz": 5 }
235
    self.assertEqual(algo.InvertDict(test_dict),
236
                     { 1: "foo", 2: "bar", 5: "baz"})
237

  
238

  
232 239
class TimeMock:
233 240
  def __init__(self, values):
234 241
    self.values = values

Also available in: Unified diff