def test_it_should_get_multiple_values(self): query = {"works": ["Prometheus Bound", "Prometheus Unbound"]} request = make_request(headers=query) result = parser.load_headers(request, author_schema) assert result["works"] == ["Prometheus Bound", "Prometheus Unbound"]
def test_it_should_return_missing_if_not_present(self): request = make_request() result = parser.load_headers(request, author_schema) assert result["name"] is missing assert result["works"] is missing
def test_it_should_get_single_values(self): query = {"name": "Euphorion"} request = make_request(headers=query) result = parser.load_headers(request, author_schema) assert result["name"] == "Euphorion"