def test_get_any_info(self):
     handler = ResponseHandler()
     handler.country_info = CountryInfoPlaceHolder({
         "name": "Egypt",
         "capital": "Cairo"
     })
     response = handler.get_all_info('egypt')
     self.assertTrue(len(response) > 0)
예제 #2
0
def route_scenario_1(name):
    handler = ResponseHandler()
    response = handler.get_all_info(name)
    return response