From a0509126e0f593078045c49f774c857b65c634c5 Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Mon, 13 Sep 2010 16:49:11 -0400 Subject: [PATCH] Added simple unit-testing structure. --- test_tablib.py | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 test_tablib.py diff --git a/test_tablib.py b/test_tablib.py new file mode 100644 index 0000000..457d74b --- /dev/null +++ b/test_tablib.py @@ -0,0 +1,25 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- + +import unittest + +import tablib + +class TablibTestCase(unittest.TestCase): + def setUp(self): + pass + + def tearDown(self): + pass + + def test_empty_append(self): + data = tablib.Dataset() + new_row = (1,2,3) + data.append(new_row) + assert data.width == len(new_row) + + + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file