Example #1
0
 def test_format_list(self):
     list_unnumbered = ["one", "two", "three"]
     value = format_list_numbered(list_unnumbered, "one")
     self.assertIn("default", value[0])
     for i in range(0, 3):
         self.assertIn(str(i), value[i])
Example #2
0
 def test_format_list(self):
     list_unnumbered = ["one", "two", "three"]
     value = format_list_numbered(list_unnumbered, "one")
     self.assertIn("default", value[0])
     for i in range(0, 3):
         self.assertIn(str(i), value[i])
Example #3
0
 def test_format_empty_list(self):
     self.assertEqual(format_list_numbered([], _default_="yes"), ["None"])
Example #4
0
 def test_format_empty_list(self):
     self.assertEqual(format_list_numbered([], _default_="yes"), ["None"])