From bc5d0a8cd499ffb57598b02e38c31c499236d691 Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Tue, 17 Feb 2015 08:58:52 -0500 Subject: [PATCH] fixed jsonify test --- test/units/TestUtils.py | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/test/units/TestUtils.py b/test/units/TestUtils.py index 286542d5e40..7dd1e751cc9 100644 --- a/test/units/TestUtils.py +++ b/test/units/TestUtils.py @@ -181,14 +181,8 @@ class TestUtils(unittest.TestCase): def test_jsonify(self): self.assertEqual(ansible.utils.jsonify(None), '{}') - self.assertEqual(ansible.utils.jsonify(dict(foo='bar', baz=['qux'])), - '{"baz": ["qux"], "foo": "bar"}') - expected = '''{ - "baz": [ - "qux" - ], - "foo": "bar" -}''' + self.assertEqual(ansible.utils.jsonify(dict(foo='bar', baz=['qux'])), '{"baz": ["qux"], "foo": "bar"}') + expected = u'{\n "baz": [\n "qux"\n ],\n "foo": "bar"\n}' self.assertEqual(ansible.utils.jsonify(dict(foo='bar', baz=['qux']), format=True), expected) def test_is_failed(self):