Re-implement ckan_resource test with httpretty rather than mocks