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')
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')
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')
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')