Taking a closer look to the code I had an idea.
england = EnglandTimeZone()
self.weather.set_location('Bath,England') self.weather.refresh() forecasts = self.weather.get_forecasts() today = forecasts[0] day = datetime.now(england).strftime('%a') self.assertEqual(str(today["Day"]), day)
The error message is : AssertionError: 'Sun' != 'Mon'
So I think there's something wrong with EnglandTimeZone wich may give from time to time a result which is not perfectly accurate.
Taking a closer look to the code I had an idea.
england = EnglandTimeZone()
forecasts = self.weather.
today = forecasts[0]
day = datetime.
The error message is : AssertionError: 'Sun' != 'Mon'
So I think there's something wrong with EnglandTimeZone wich may give from time to time a result which is not perfectly accurate.