diff --git a/tests/test_templatetags.py b/tests/test_templatetags.py index ee9513ca0..acfc8ab7c 100644 --- a/tests/test_templatetags.py +++ b/tests/test_templatetags.py @@ -50,17 +50,16 @@ class TemplateTagTests(TestCase): Tests format_value with a list of lists/dicts """ list_of_lists = [['list1'], ['list2'], ['list3']] - self.assertEqual(format_value(list_of_lists), '\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
0\n list1\n
1\n list2\n
2\n list3\n
\n') + self.assertEqual( + format_value(list_of_lists).replace(' ', ''), + '\n\n\n\n\n0\n\nlist1\n\n\n\n\n1\n\nlist2\n\n\n\n\n2\n\nlist3\n\n\n\n\n\n' + ) list_of_dicts = [{'item1': 'value1'}, {'item2': 'value2'}, {'item3': 'value3'}] - self.assertEqual(format_value(list_of_dicts), '\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
0
1
2
\n') - - def test_format_value_dict(self): - """ - Tests format_value with a dict of strings - """ - dict_items = {'item1': 'value1', 'item2': 'value2', 'item3': 'value3'} - self.assertEqual(format_value(dict_items), '') + self.assertEqual( + format_value(list_of_dicts).replace(' ', ''), + '\n\n\n\n\n0\n\n\n\n\n1\n\n\n\n\n2\n\n\n\n\n\n' + ) def test_format_value_simple_string(self): """