diff options
| author | Brad Pitcher <bradpitcher@gmail.com> | 2014-04-30 16:27:20 -0700 |
|---|---|---|
| committer | Brad Pitcher <bradpitcher@gmail.com> | 2014-04-30 16:27:20 -0700 |
| commit | 6f4572fa5618d50aa2de3ec82dd76de18e3e4428 (patch) | |
| tree | 3de87cf387f53af2e384f2a4d9930734df59fdb3 | |
| parent | 453fc8614cf3324e063b12da76c5f552dd63d2c5 (diff) | |
| download | tablib-6f4572fa5618d50aa2de3ec82dd76de18e3e4428.tar.gz | |
load json to dict to workaround random dictionary hashes
| -rwxr-xr-x | test_tablib.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test_tablib.py b/test_tablib.py index 1a0f72b..4364d7b 100755 --- a/test_tablib.py +++ b/test_tablib.py @@ -2,6 +2,7 @@ # -*- coding: utf-8 -*- """Tests for Tablib.""" +import json import unittest import sys import os @@ -349,7 +350,7 @@ class TablibTestCase(unittest.TestCase): data.json = _json - self.assertEqual(_json, data.json) + self.assertEqual(json.loads(_json), json.loads(data.json)) def test_json_import_book(self): @@ -363,7 +364,7 @@ class TablibTestCase(unittest.TestCase): book.json = _json - self.assertEqual(_json, book.json) + self.assertEqual(json.loads(_json), json.loads(book.json)) def test_yaml_import_set(self): |
