Ejemplo n.º 1
0
 def test_diff_format(self):
         # Test any similiar formats can be used
         a = pyks.format_ks(40, "In the %H of the %M second to the %S")
         self.assertEqual(a, "In the 11 of the 06 second to the 40")
Ejemplo n.º 2
0
 def test_format(self):
         # Test the format is converting correctly
         a = pyks.format_ks(40, "%H:%M:%S")
         self.assertEqual(a, "11:06:40")
Ejemplo n.º 3
0
 def test_format_string_in(self):
         # Test strings are converted and used
         a = pyks.format_ks("40", "%H:%M:%S")
         self.assertEqual(a, "11:06:40")