diff options
| author | Luke Lee <durdenmisc@gmail.com> | 2010-09-13 20:32:36 -0500 |
|---|---|---|
| committer | Luke Lee <durdenmisc@gmail.com> | 2010-09-13 20:32:36 -0500 |
| commit | 1482ca4a198579afaa3f2a191ad2f468b28d2b37 (patch) | |
| tree | ae0a71228e44fdf9c6cf13452da37e018bcd0a6b | |
| parent | 93c6c3958172875354a688d430e92f0d95428e6a (diff) | |
| download | tablib-1482ca4a198579afaa3f2a191ad2f468b28d2b37.tar.gz | |
Adding docstrings
| -rw-r--r-- | test_tablib.py | 12 |
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'] |
