Skip to content

Commit

Permalink
fix authentication_test pytest failure
Browse files Browse the repository at this point in the history
  • Loading branch information
auvipy committed Dec 5, 2016
1 parent 85807e1 commit 841a91e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_authentication.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,8 @@ def test_login_view_renders_on_get(self):
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):
"""
Expand Down

0 comments on commit 841a91e

Please sign in to comment.