summaryrefslogtreecommitdiff
path: root/test_tablib.py
diff options
context:
space:
mode:
authorKenneth Reitz <me@kennethreitz.com>2011-08-08 06:47:47 -0400
committerKenneth Reitz <me@kennethreitz.com>2011-08-08 06:47:47 -0400
commitbc759115001ae4afafadc372e2f2711b9a6ce2d0 (patch)
tree2430e45d987c2a838c4fe8d9ffd6d895f1ffd685 /test_tablib.py
parentfde6f11763cb6c23ac44acaf53b19682e483e516 (diff)
parenta2b4e4c6ba6315571e476b09f69312c7d5788e45 (diff)
downloadtablib-bc759115001ae4afafadc372e2f2711b9a6ce2d0.tar.gz
Merge branch 'html_None_fix' of https://github.com/mawaldne/tablib into develop
Diffstat (limited to 'test_tablib.py')
-rwxr-xr-xtest_tablib.py20
1 files changed, 20 insertions, 0 deletions
diff --git a/test_tablib.py b/test_tablib.py
index d1cb16b..998233b 100755
--- a/test_tablib.py
+++ b/test_tablib.py
@@ -224,6 +224,26 @@ class TablibTestCase(unittest.TestCase):
self.assertEqual(html, self.founders.html)
+ def test_html_export_none_value(self):
+ """HTML export"""
+
+ html = markup.page()
+ html.table.open()
+ html.thead.open()
+
+ html.tr(markup.oneliner.th(['foo','', 'bar']))
+ html.thead.close()
+
+ html.tr(markup.oneliner.td(['foo','', 'bar']))
+
+ html.table.close()
+ html = str(html)
+
+ headers = ['foo', None, 'bar'];
+ d = tablib.Dataset(['foo', None, 'bar'], headers=headers)
+
+ self.assertEqual(html, d.html)
+
def test_unicode_append(self):
"""Passes in a single unicode charecter and exports."""