Beispiel #1
0
 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)
Beispiel #2
0
 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)