mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
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:
parent
66831fd087
commit
46bf6d4fa3
1 changed files with 1 additions and 1 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Reference in a new issue