def __init__(self, name, draw_graph=False): self.__info = Request.country_info(name) self.__historical = Request.country_historical(self.__info.name) super(CountryMessage, self).__init__(Draw.country_historical, self.__historical, draw_graph=draw_graph)
def test_country_historical_request(self): for country_name in self.TEST_COUNTRIES: request = Request.country_historical(country_name) self.assert_country_historical(request)