def __init__(self, first_countries=None, draw_graph=True, sort=CountryInfo.Fields.cases): self.__info = Request.world_info() self.__historical = Request.world_historical() self.__countries = Request.countries(sort=sort) self.sort = sort.name self.first_countries = first_countries super(WorldMessage, self).__init__(Draw.world_historical, self.__historical, draw_graph=draw_graph)
def test_world_historical(self): req = Request.world_historical() self.assert_historical_dicts(req)