def test_specific_route(self): b = Bongo() b.route('lantern', 'coralville') params = {'format': 'json', 'route': 'lantern', 'agency': 'coralville'} endpoint = 'http://ebongo.org/api/route' self.get.assert_called_with(endpoint, params=params)
def test_empty_route_method(self): b = Bongo() b.route() params = {'format': 'json'} endpoint = 'http://ebongo.org/api/routelist' self.get.assert_called_with(endpoint, params=params)