Пример #1
0
 def test_it_should_get_multiple_values(self):
     query = [("works", "Sappho 31"), ("works", "Ode to Aphrodite")]
     request = make_files_request(query)
     result = parser.load_files(request, author_schema)
     assert result["works"] == ["Sappho 31", "Ode to Aphrodite"]
Пример #2
0
 def test_it_should_return_missing_if_not_present(self):
     query = []
     request = make_files_request(query)
     result = parser.load_files(request, author_schema)
     assert result["name"] is missing
     assert result["works"] is missing
Пример #3
0
 def test_it_should_get_single_values(self):
     query = [("name", "Sappho")]
     request = make_files_request(query)
     result = parser.load_files(request, author_schema)
     assert result["name"] == "Sappho"