示例#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={})
def getOpen311Discovery():
    t = Three(open311URL, ssl_version=ssl.PROTOCOL_TLSv1)
    print t.discovery()