fix authentication_test pytest failure

This commit is contained in:
Asif Saifuddin Auvi 2016-12-06 00:47:58 +06:00
parent 85807e1958
commit 841a91e950

View File

@ -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 '<label for="id_username">Username:</label>' in response
content = response.content.decode('utf8')
assert '<label for="id_username">Username:</label>' in content
def test_post_form_session_auth_failing_csrf(self):
"""