コード例 #1
0
ファイル: test_unit.py プロジェクト: OpenGovGear/datapusher
 def test_get_action_url_missing_http(self):
     assert_equal(
         jobs.get_url('datastore_create', 'www.ckan.org/'),
         'http://www.ckan.org/api/3/action/datastore_create')
コード例 #2
0
ファイル: test_unit.py プロジェクト: OCHA-DAP/hdx-datapusher
 def test_get_action_url_missing_http(self):
     assert_equal(jobs.get_url('datastore_create', 'www.ckan.org/'),
                  'http://www.ckan.org/api/3/action/datastore_create')
コード例 #3
0
ファイル: test_unit.py プロジェクト: OpenGovGear/datapusher
 def test_get_action_url_with_https(self):
     assert_equal(
         jobs.get_url('datastore_create', 'https://www.ckan.org/'),
         'https://www.ckan.org/api/3/action/datastore_create')
コード例 #4
0
ファイル: test_unit.py プロジェクト: OCHA-DAP/hdx-datapusher
 def test_get_action_url_with_https(self):
     assert_equal(jobs.get_url('datastore_create', 'https://www.ckan.org/'),
                  'https://www.ckan.org/api/3/action/datastore_create')