Esempio n. 1
0
    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)
Esempio n. 2
0
 def test_world_info_request(self):
     req = Request.world_info()
     self.assertGreater(req.cases + req.recovered, 2 * 10**6)