Skip to content

Commit

Permalink
Add unittests for #829
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesls committed Jun 30, 2014
1 parent 9bb39c0 commit 4ac8c77
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/unit/test_text.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,15 @@ def test_multiple_list_of_dicts(self):
'ZOO\t0\t1\t2\n'
)

def test_single_scalar_number(self):
self.assert_text_renders_to(10, '10\n')

def test_list_of_single_number(self):
self.assert_text_renders_to([10], '10\n')

def test_list_of_multiple_numbers(self):
self.assert_text_renders_to([10, 10, 10], '10\t10\t10\n')

def test_different_keys_in_sublists(self):
self.assert_text_renders_to(
# missing "b" adds "d"
Expand Down

0 comments on commit 4ac8c77

Please sign in to comment.