summaryrefslogtreecommitdiff
path: root/test_tablib.py
diff options
context:
space:
mode:
Diffstat (limited to 'test_tablib.py')
-rw-r--r--test_tablib.py12
1 files changed, 10 insertions, 2 deletions
diff --git a/test_tablib.py b/test_tablib.py
index 81673bd..13aa66b 100644
--- a/test_tablib.py
+++ b/test_tablib.py
@@ -1,20 +1,26 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
+"""Tests for tablib"""
+
import unittest
import tablib
class TablibTestCase(unittest.TestCase):
+ """Tablib test cases"""
+
def setUp(self):
+ """setup"""
pass
def tearDown(self):
+ """teardown"""
pass
def test_empty_append(self):
-
+ """Verify append() correctly adds tuple with no headers"""
data = tablib.Dataset()
new_row = (1, 2, 3)
@@ -23,7 +29,9 @@ class TablibTestCase(unittest.TestCase):
self.assertTrue(data.width == len(new_row))
def test_empty_append_with_headers(self):
-
+ """Verify append() correctly detects mismatch of number of
+ headers and data
+ """
data = tablib.Dataset()
data.headers = ['first', 'second']