mirror of
https://github.com/kennethreitz/tablib.git
synced 2026-06-05 23:10:17 +00:00
Adding docstrings
This commit is contained in:
+10
-2
@@ -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']
|
||||
|
||||
Reference in New Issue
Block a user