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