summaryrefslogtreecommitdiff
path: root/test_tablib.py
diff options
context:
space:
mode:
Diffstat (limited to 'test_tablib.py')
-rwxr-xr-xtest_tablib.py23
1 files changed, 23 insertions, 0 deletions
diff --git a/test_tablib.py b/test_tablib.py
index 8e2454f..bc660fe 100755
--- a/test_tablib.py
+++ b/test_tablib.py
@@ -5,6 +5,7 @@
import unittest
+import markup
import tablib
@@ -182,6 +183,27 @@ class TablibTestCase(unittest.TestCase):
self.assertEqual(tsv, self.founders.tsv)
+ def test_html_export(self):
+
+ """HTML export"""
+
+ html = markup.page()
+ html.table.open()
+ html.thead.open()
+
+ html.tr(markup.oneliner.th(self.founders.headers))
+ html.thead.close()
+
+ for founder in self.founders:
+
+ html.tr(markup.oneliner.td(founder))
+
+ html.table.close()
+ html = str(html)
+
+ self.assertEqual(html, self.founders.html)
+
+
def test_unicode_append(self):
"""Passes in a single unicode charecter and exports."""
@@ -403,6 +425,7 @@ class TablibTestCase(unittest.TestCase):
("John", "Adams", 90, "John", "Adams", 90))
+
def test_wipe(self):
"""Purge a dataset."""