diff options
| author | Claude Paroz <claude@2xlibre.net> | 2018-07-07 14:09:28 +0200 |
|---|---|---|
| committer | Claude Paroz <claude@2xlibre.net> | 2019-10-04 09:36:42 +0200 |
| commit | 8ea082ce604c9517bc999fc9af2a26e5eff19f7e (patch) | |
| tree | 1b9ac77a3750591755dfe510f921583d6000d528 /test_tablib.py | |
| parent | a0df54ca2234f904dcc1ccc189cbcd173d59f691 (diff) | |
| download | tablib-8ea082ce604c9517bc999fc9af2a26e5eff19f7e.tar.gz | |
Fixes #274 - Fix Databook.load() params ordering
Diffstat (limited to 'test_tablib.py')
| -rwxr-xr-x | test_tablib.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test_tablib.py b/test_tablib.py index 9cbc6c8..758ac91 100755 --- a/test_tablib.py +++ b/test_tablib.py @@ -806,6 +806,9 @@ class JSONTests(BaseTestCase): book.json = _json self.assertEqual(json.loads(_json), json.loads(book.json)) + # Same with the load interface + book2 = tablib.Databook().load(_json, None) + self.assertEqual(json.loads(book.json), json.loads(book2.json)) def test_json_import_set(self): """Generate and import JSON set serialization.""" @@ -862,6 +865,9 @@ class YAMLTests(BaseTestCase): book.yaml = _yaml self.assertEqual(_yaml, book.yaml) + # Same with the load interface + book2 = tablib.Databook().load(_yaml, None) + self.assertEqual(_yaml, book2.yaml) def test_yaml_import_set(self): """Generate and import YAML set serialization.""" |
