diff --git a/tests/test_authentication.py b/tests/test_authentication.py
index 21d2583bf..151fabad5 100644
--- a/tests/test_authentication.py
+++ b/tests/test_authentication.py
@@ -175,7 +175,8 @@ class SessionAuthTests(TestCase):
cf. [#1810](https://github.com/tomchristie/django-rest-framework/pull/1810)
"""
response = self.csrf_client.get('/auth/login/')
- assert '' in response
+ content = response.content.decode('utf8')
+ assert '' in content
def test_post_form_session_auth_failing_csrf(self):
"""