Advertisement
den4ik2003

Untitled

May 8th, 2022
184
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.25 KB | None | 0 0
  1. @patch('weather_03.weather_wrapper.WeatherWrapper.get', status_code=404)
  2.     def test_get_response_city(self):
  3.         weather = WeatherWrapper('my_key')
  4.         self.assertRaises(AttributeError, weather.get_response_city, 'Abracadabracity', BASE_URL)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement