Пример #1
0
    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)
Пример #2
0
 def test_country_info_request(self):
     for country_name in self.TEST_COUNTRIES:
         req = Request.country_info(country_name)
         self.assert_country_info(req)