Ejemplo n.º 1
0
 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={})
Ejemplo n.º 2
0
 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")
Ejemplo n.º 3
0
 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')
Ejemplo n.º 4
0
 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={})
Ejemplo n.º 5
0
 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')
Ejemplo n.º 6
0
 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()