def test_prediction_for_stop(self): b = Bongo() b.predict(12345) params = {'format': 'json', 'stopid': 12345} endpoint = 'http://ebongo.org/api/prediction' self.get.assert_called_with(endpoint, params=params)