Fix BytesWarning in test_schemas.py (#6638)

This commit is contained in:
Jon Dufresne 2019-05-01 16:47:01 -07:00 committed by Ryan P Kilby
parent e16273a658
commit f669395dd8

View File

@ -1358,4 +1358,4 @@ def test_schema_handles_exception():
response = schema_view(request)
response.render()
assert response.status_code == 403
assert "You do not have permission to perform this action." in str(response.content)
assert b"You do not have permission to perform this action." in response.content