コード例 #1
0
ファイル: test.py プロジェクト: siruguri/three
 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={})
コード例 #2
0
ファイル: test.py プロジェクト: siruguri/three
 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")
コード例 #3
0
ファイル: test.py プロジェクト: isabella232/three
 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')
コード例 #4
0
ファイル: test.py プロジェクト: isabella232/three
 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={})
コード例 #5
0
ファイル: test.py プロジェクト: SeeClickFix/three
 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')
コード例 #6
0
ファイル: test.py プロジェクト: SeeClickFix/three
 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={})
コード例 #7
0
def getOpen311Discovery():
    t = Three(open311URL, ssl_version=ssl.PROTOCOL_TLSv1)
    print t.discovery()