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