Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @patch('weather_03.weather_wrapper.WeatherWrapper.get', status_code=404)
- def test_get_response_city(self):
- weather = WeatherWrapper('my_key')
- self.assertRaises(AttributeError, weather.get_response_city, 'Abracadabracity', BASE_URL)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement