def test_default_discovery_method(self): t = Three("api.city.gov") t.discovery() expected = "https://api.city.gov/discovery.json" req.get.assert_called_with(expected, params={})
def test_discovery_url_argument(self): t = Three("api.city.gov") t.discovery("http://testing.gov/discovery.json") req.get.assert_called_with("http://testing.gov/discovery.json")
def test_discovery_url_argument(self): t = Three('api.city.gov') t.discovery('http://testing.gov/discovery.json') t.session.get.assert_called_with('http://testing.gov/discovery.json')
def test_default_discovery_method(self): t = Three('api.city.gov') t.discovery() expected = 'https://api.city.gov/discovery.json' t.session.get.assert_called_with(expected, params={})
def getOpen311Discovery(): t = Three(open311URL, ssl_version=ssl.PROTOCOL_TLSv1) print t.discovery()