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