def test_all_content_types(words): palmetto = Palmetto() for content_type in ["text", "bytes"]: palmetto._request_by_service(words, "umass", content_type)
def test_wrong_content_type(words): palmetto = Palmetto() with pytest.raises(WrongContentType): palmetto._request_by_service(words, "cv", "bla")