summaryrefslogtreecommitdiff
path: root/test_tablib.py
diff options
context:
space:
mode:
authorKenneth Reitz <me@kennethreitz.com>2010-09-25 06:20:34 -0400
committerKenneth Reitz <me@kennethreitz.com>2010-09-25 06:20:34 -0400
commit80cb42e8dd787a2ceffb37fe7a2380a97d000f4e (patch)
treefb3e68962053aa45837c42a251ba7236f3dfac29 /test_tablib.py
parent8d7e5732cd95c23cfa5947342312e7e519f8e311 (diff)
downloadtablib-80cb42e8dd787a2ceffb37fe7a2380a97d000f4e.tar.gz
Archaic imports in place!
Diffstat (limited to 'test_tablib.py')
-rwxr-xr-xtest_tablib.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/test_tablib.py b/test_tablib.py
index 0f79a20..6758daa 100755
--- a/test_tablib.py
+++ b/test_tablib.py
@@ -200,6 +200,11 @@ class TablibTestCase(unittest.TestCase):
new_data.headers = self.headers
new_data = tablib.formats.json.import_set(str(new_data.json))
+
+ book = tablib.Databook()
+ book.add_sheet(new_data)
+ new_book = tablib.formats.json.import_book(str(book.json))
+
def test_yaml_import(self):
"""Generate and import YAML serialization."""
@@ -208,6 +213,11 @@ class TablibTestCase(unittest.TestCase):
new_data.headers = self.headers
new_data = tablib.formats.yaml.import_set(str(new_data.json))
+
+ book = tablib.Databook()
+ book.add_sheet(new_data)
+ new_book = tablib.formats.yaml.import_book(str(book.yaml))
+
def test_csv_import(self):
"""Generate and import CSV serialization."""