diff options
author | luke@maurits.id.au <luke@maurits.id.au@0f58610c-415a-11de-9c03-5d6cfad8e937> | 2013-10-05 23:45:44 +0000 |
---|---|---|
committer | luke@maurits.id.au <luke@maurits.id.au@0f58610c-415a-11de-9c03-5d6cfad8e937> | 2013-10-05 23:45:44 +0000 |
commit | 25c569047a2868d4b563311484e5c4543598f316 (patch) | |
tree | d7836005a94d059403d0b6810bc451873b705493 /prettytable_test.py | |
parent | 977b27fbb33bf5eaed5199782a515ed61e86018a (diff) | |
download | python-prettytable-25c569047a2868d4b563311484e5c4543598f316.tar.gz |
Added title attribute/option.
git-svn-id: http://prettytable.googlecode.com/svn/trunk@132 0f58610c-415a-11de-9c03-5d6cfad8e937
Diffstat (limited to 'prettytable_test.py')
-rw-r--r-- | prettytable_test.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/prettytable_test.py b/prettytable_test.py index 6243d13..ef33d3e 100644 --- a/prettytable_test.py +++ b/prettytable_test.py @@ -192,6 +192,14 @@ class BasicTests(CityDataTest): lengths = set(lengths) self.assertEqual(len(lengths),1) +class TitleBasicTests(BasicTests): + + """Run the basic tests with a title""" + + def setUp(self): + BasicTests.setUp(self) + self.x.title = "My table" + class NoBorderBasicTests(BasicTests): """Run the basic tests with border = False""" @@ -243,6 +251,7 @@ class EmptyTableTests(CityDataTest): def testInteractionWithBorder(self): assert self.y.get_string(border=False, print_empty=True) == "" + class PresetBasicTests(BasicTests): """Run the basic tests after using set_style""" |