예제 #1
0
 def test_good6(self):
     self.month = Month.check_month("December")
     correct_month = 12
     self.assertEqual(correct_month, self.month)
예제 #2
0
 def test_vgood7(self):
     self.month = Month.check_month("Fall")
     correct_month = 10
     self.assertEqual(correct_month, self.month)
예제 #3
0
 def test_middle4(self):
     self.month = Month.check_month("Janurarily")
     correct_month = 1
     self.assertEqual(correct_month, self.month)
예제 #4
0
 def test_good5(self):
     self.month = Month.check_month("5")
     correct_month = 5
     self.assertEqual(correct_month, self.month)
예제 #5
0
 def test_bad3(self):
     self.month = Month.check_month("0")
     correct_month = 1
     self.assertEqual(correct_month, self.month)
예제 #6
0
 def test_bad2(self):
     self.month = Month.check_month("14")
     correct_month = 12
     self.assertEqual(correct_month, self.month)
예제 #7
0
 def test_bad1(self):
     self.month = Month.check_month("Juneuronfs")
     correct_month = 6
     self.assertEqual(correct_month, self.month)
예제 #8
0
 def test_vbad0(self):
     self.month = Month.check_month("eiotyhwrt345")
     correct_month = 1
     self.assertEqual(correct_month, self.month)
예제 #9
0
 def setUp(self):
     self.month = Month.check_month("")