Example #1
0
 def test_stops_method_with_xml_format(self):
     b = Bongo('xml')
     b.stops()
     self.get.return_value = Mock()
     params = {'format': 'xml'}
     endpoint = 'http://ebongo.org/api/stoplist'
     self.get.assert_called_with(endpoint, params=params)
Example #2
0
 def test_stops_method(self):
     b = Bongo()
     b.stops()
     params = {'format': 'json'}
     endpoint = 'http://ebongo.org/api/stoplist'
     self.get.assert_called_with(endpoint, params=params)