From 1482ca4a198579afaa3f2a191ad2f468b28d2b37 Mon Sep 17 00:00:00 2001 From: Luke Lee Date: Mon, 13 Sep 2010 20:32:36 -0500 Subject: [PATCH] Adding docstrings --- test_tablib.py | 12 ++++++++++-- 1 file 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']