def test_validate_api_key(self): jobs.validate_input({ 'metadata': { 'resource_id': 'h32jk4h34k5', 'ckan_url': 'http://www.ckan.org' } })
def test_validate_input_raises_if_res_id_missing(self): jobs.validate_input({ 'metadata': { 'ckan_url': 'http://www.ckan.org' }, 'api_key': 'my-key' })
def test_validate_input_raises_if_ckan_url_missing(self): jobs.validate_input({ 'metadata': { 'resource_id': 'h32jk4h34k5' }, 'api_key': 'my-key' })
def test_validate_input_raises_if_metadata_missing(self): jobs.validate_input({ 'foo': {}, 'api_key': 'my-key' })
def test_validate_input_raises_if_metadata_missing(self): jobs.validate_input({'foo': {}, 'api_key': 'my-key'})