Skip to content

Commit

Permalink
Python 2 has different JSON whitespace, so test smaller indentation s…
Browse files Browse the repository at this point in the history
…nippet
  • Loading branch information
James McKinney committed Jan 30, 2016
1 parent e88f54b commit 7136d00
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions tests/test_utilities/test_csvjson.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,7 @@ def test_indentation(self):
js = json.loads(content)

self.assertDictEqual(js[0], {'a': True, 'c': 3.0, 'b': 2.0})
self.assertEqual(content, """[
{
"a": true,
"b": 2.0,
"c": 3.0
}
]""")
self.assertRegexpMatches(content, ' "a": true,')

def test_keying(self):
args = ['-k', 'a', 'examples/dummy.csv']
Expand Down

0 comments on commit 7136d00

Please sign in to comment.