コード例 #1
0
ファイル: tests.py プロジェクト: ashleyblackmore/weather-cli
 def test_minus_10(self):
     self.assertEquals(weather.get_temp_color("It's -10 degrees and snowing"), 'cyan')
コード例 #2
0
ファイル: tests.py プロジェクト: ashleyblackmore/weather-cli
 def test_temp_is_yellow(self):
     self.assertEquals(weather.get_temp_color("It's 70 degrees and sunny"), 'yellow')
コード例 #3
0
ファイル: tests.py プロジェクト: ashleyblackmore/weather-cli
 def test_temp_is_magenta(self):
     self.assertEquals(weather.get_temp_color("It's 100 degrees and sunny"), 'red')
コード例 #4
0
ファイル: tests.py プロジェクト: ashleyblackmore/weather-cli
 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'