From 1b30922e74ec72a631985eb06ee10297661933d2 Mon Sep 17 00:00:00 2001 From: Artem Muterko Date: Mon, 23 Jan 2017 15:56:50 +0200 Subject: [PATCH] Adjust test to pass on Django 1.8 --- tests/test_authentication.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/test_authentication.py b/tests/test_authentication.py index c15f84a6e..631649369 100644 --- a/tests/test_authentication.py +++ b/tests/test_authentication.py @@ -263,7 +263,9 @@ class BaseTokenAuthTests(object): assert response.status_code == status.HTTP_200_OK def test_fail_authentication_if_user_is_not_active(self): - user = User.objects.create_user('foo', 'bar', 'baz', is_active=False) + user = User.objects.create_user('foo', 'bar', 'baz') + user.is_active = False + user.save() self.model.objects.create(key='foobar_token', user=user) response = self.csrf_client.post( self.path, {'example': 'example'},