Adding docstrings

This commit is contained in:
Luke Lee
2010-09-13 20:32:36 -05:00
parent 93c6c39581
commit 1482ca4a19
+10 -2
View File
@@ -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']