diff options
| author | Tom Christie | 2012-10-09 09:57:31 +0100 |
|---|---|---|
| committer | Tom Christie | 2012-10-09 09:57:31 +0100 |
| commit | 5c17a60176d91b8ef8fa729096fd57481de7a4ea (patch) | |
| tree | 8eec620a04362380dcf2b93aa083ad1d46db6ad8 /rest_framework/tests/authentication.py | |
| parent | beea6487b214a0e40e0688a511cce5e065568632 (diff) | |
| download | django-rest-framework-5c17a60176d91b8ef8fa729096fd57481de7a4ea.tar.bz2 | |
Tweak authtoken
Diffstat (limited to 'rest_framework/tests/authentication.py')
| -rw-r--r-- | rest_framework/tests/authentication.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/rest_framework/tests/authentication.py b/rest_framework/tests/authentication.py index 0a3b2e02..8ab4c4e4 100644 --- a/rest_framework/tests/authentication.py +++ b/rest_framework/tests/authentication.py @@ -149,5 +149,6 @@ class TokenAuthTests(TestCase): def test_token_has_auto_assigned_key_if_none_provided(self): """Ensure creating a token with no key will auto-assign a key""" + self.token.delete() token = Token.objects.create(user=self.user) self.assertTrue(bool(token.key)) |
