Revision a182a3ed test/ganeti.serializer_unittest.py

b/test/ganeti.serializer_unittest.py
52 52
    ]
53 53

  
54 54
  def _TestSerializer(self, dump_fn, load_fn):
55
    for indent in [True, False]:
56
      for data in self._TESTDATA:
57
        self.failUnless(dump_fn(data, indent=indent).endswith("\n"))
58
        self.assertEqualValues(load_fn(dump_fn(data, indent=indent)), data)
55
    for data in self._TESTDATA:
56
      self.failUnless(dump_fn(data).endswith("\n"))
57
      self.assertEqualValues(load_fn(dump_fn(data)), data)
59 58

  
60 59
  def testGeneric(self):
61 60
    self._TestSerializer(serializer.Dump, serializer.Load)

Also available in: Unified diff