diff --git a/tests/unit/test_text.py b/tests/unit/test_text.py index 4c28ef4c33f9..341053efe03d 100644 --- a/tests/unit/test_text.py +++ b/tests/unit/test_text.py @@ -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"