예제 #1
0
 def test_check_date_string_3(self):
     self.assertTrue(User_Data.check_date_string("2005.12.05"))
예제 #2
0
 def test_valid_weight_string(self):
     self.assertFalse(User_Data.valid_weight("I don't know"))
예제 #3
0
 def test_check_date_string_2(self):
     self.assertFalse(User_Data.check_date_string("2005.02.31"))
예제 #4
0
 def test_check_date_string_1(self):
     self.assertFalse(User_Data.check_date_string("gsdkjhgs"))
예제 #5
0
 def test_get_weight_above_50(self):
     self.assertTrue(User_Data.valid_weight("60"))
예제 #6
0
 def test_get_weight_below_50(self):
     with self.assertRaises(SystemExit):
         User_Data.valid_weight("49")
예제 #7
0
 def test_valid_weight_negative(self):
     self.assertFalse(User_Data.valid_weight("-50"))