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()