Skip to content

Commit

Permalink
Bring coverage back to 100%
Browse files Browse the repository at this point in the history
  • Loading branch information
digitalresistor committed Nov 12, 2018
1 parent e10e9ad commit 9ac1009
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/test_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,15 @@ def test_content_type_supports_unicode():
assert isinstance(resp.headers["Content-Type"], str)


@pytest.mark.skipif("sys.version_info < (3, 0)")
def test_content_type_not_binary():
content_type = b"text/html"
resp = Response()

with pytest.raises(TypeError):
resp.content_type = content_type


def test_cookies():
res = Response()
# test unicode value
Expand Down

0 comments on commit 9ac1009

Please sign in to comment.