示例#1
0
 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
 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
 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
 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')