Update file.serialize test for Python serialized

pprint.pformat seems non-reversible, so just add the newline there as well
This commit is contained in:
Ronald van Zantvoort 2015-10-21 17:12:53 +02:00
parent 66831fd087
commit 46bf6d4fa3

View file

@ -63,7 +63,7 @@ class TestFileState(TestCase):
self.assertEqual(json.loads(returner.returned), dataset)
filestate.serialize('/tmp', dataset, formatter="python")
self.assertEqual(returner.returned, pprint.pformat(dataset))
self.assertEqual(returner.returned, pprint.pformat(dataset) + '\n')
def test_contents_and_contents_pillar(self):
def returner(contents, *args, **kwargs):