Пример #1
0
 def test_snow(self):
     """ Test for snowing """
     self.assertTrue(lab02.need_coat(), "It's snowing should return true")
Пример #2
0
 def test_hot_rain(self):
     """ Tests for it raining but over 55 degrees. """
     self.assertTrue(lab02.need_coat(), "Its raining and over 55 shoul return true")
Пример #3
0
 def test_cold_rain(self):
     """ test under 55 and rain """
     self.assertTrue(lab02.need_coat(), "Its raining should be true")
Пример #4
0
 def test_over_55(self):
     """ Tests that a true value is returned if it is under 55 degrees"""
     self.assertFalse(lab02.need_coat(), "If temp over 55 should return False")