Пример #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')