def test_tuple_param(self):
     self.assertEqual(two_digit_datetime(()), "()")
 def test_dict_param(self):
     self.assertEqual(two_digit_datetime({}), "{}")
 def test_list_param(self):
     self.assertEqual(two_digit_datetime([]), "[]")
 def test_three_string(self):
     self.assertEqual(two_digit_datetime("123"), "23")
Пример #5
0
 def test_dict_param(self):
     self.assertEqual(two_digit_datetime({}), "{}")
 def test_two_digit(self):
     self.assertEqual(two_digit_datetime(12), "12")
 def test_one_string(self):
     self.assertEqual(two_digit_datetime("1"), "01")
Пример #8
0
 def test_three_digit(self):
     self.assertEqual(two_digit_datetime(123), "23")
Пример #9
0
 def test_one_string(self):
     self.assertEqual(two_digit_datetime("1"), "01")
Пример #10
0
 def test_one_digit(self):
     self.assertEqual(two_digit_datetime(1), "01")
Пример #11
0
 def test_two_digit(self):
     self.assertEqual(two_digit_datetime(12), "12")
Пример #12
0
 def test_empty_string(self):
     self.assertEqual(two_digit_datetime(""), "0")
Пример #13
0
 def test_tuple_param(self):
     self.assertEqual(two_digit_datetime(()), "()")
Пример #14
0
 def test_list_param(self):
     self.assertEqual(two_digit_datetime([]), "[]")
 def test_empty_string(self):
     self.assertEqual(two_digit_datetime(""), "0")
Пример #16
0
 def test_two_string(self):
     self.assertEqual(two_digit_datetime("12"), "12")
 def test_one_digit(self):
     self.assertEqual(two_digit_datetime(1), "01")
Пример #18
0
 def test_three_string(self):
     self.assertEqual(two_digit_datetime("123"), "23")
 def test_three_digit(self):
     self.assertEqual(two_digit_datetime(123), "23")
Пример #20
0
 def test_word_string(self):
     self.assertEqual(two_digit_datetime("random"), "om")
 def test_two_string(self):
     self.assertEqual(two_digit_datetime("12"), "12")
 def test_no_param(self):
     with self.assertRaises(TypeError):
         two_digit_datetime()
 def test_word_string(self):
     self.assertEqual(two_digit_datetime("random"), "om")
Пример #24
0
 def test_no_param(self):
     with self.assertRaises(TypeError):
         two_digit_datetime()