Ejemplo n.º 1
0
 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"]
Ejemplo n.º 2
0
 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
Ejemplo n.º 3
0
 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"