Archaic imports in place!

This commit is contained in:
Kenneth Reitz
2010-09-25 06:20:34 -04:00
parent 8d7e5732cd
commit 80cb42e8dd
4 changed files with 39 additions and 9 deletions
+10
View File
@@ -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."""