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