def test_it_should_get_multiple_values(self): query = [("works", "The Wasps"), ("works", "The Frogs")] request = make_form_request(query) result = parser.load_form(request, author_schema) assert result["works"] == ["The Wasps", "The Frogs"]
def test_it_should_return_missing_if_not_present(self): query = [] request = make_form_request(query) result = parser.load_form(request, author_schema) assert result["name"] is missing assert result["works"] is missing
def test_it_should_get_single_values(self): query = [("name", "Aristophanes")] request = make_form_request(query) result = parser.load_form(request, author_schema) assert result["name"] == "Aristophanes"