Beispiel #1
0
 def test_minus_10(self):
     self.assertEquals(weather.get_temp_color("It's -10 degrees and snowing"), 'cyan')
Beispiel #2
0
 def test_temp_is_yellow(self):
     self.assertEquals(weather.get_temp_color("It's 70 degrees and sunny"), 'yellow')
Beispiel #3
0
 def test_temp_is_magenta(self):
     self.assertEquals(weather.get_temp_color("It's 100 degrees and sunny"), 'red')
Beispiel #4
0
 def test_temp_is_blue(self):
     self.assertEquals(weather.get_temp_color("It's 45 degrees and snowing"), 'blue')
Beispiel #5
0
 def it_is_cyan_when_very_cold(self):
     assert weathercli.get_temp_color("It's -10 degrees and snowing") == 'cyan'
Beispiel #6
0
 def it_is_magenta_when_hot(self):
     assert weathercli.get_temp_color("It's 100 degrees and sunny") == 'red'
Beispiel #7
0
 def it_is_yellow_when_warm(self):
     assert weathercli.get_temp_color("It's 70 degrees and sunny") == 'yellow'
Beispiel #8
0
 def it_is_blue_when_cold(self):
     assert weathercli.get_temp_color("It's 45 degrees and snowing") == 'blue'