mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-13 16:54:47 +03:00
Update tests/test_authtoken.py
Co-authored-by: Bruno Alla <browniebroke@users.noreply.github.com>
This commit is contained in:
parent
621968d3f8
commit
a720d71532
|
@ -82,10 +82,6 @@ class AuthTokenTests(TestCase):
|
||||||
self.assertEqual(token.user, user2)
|
self.assertEqual(token.user, user2)
|
||||||
|
|
||||||
def test_saving_existing_token_without_changes_does_not_alter_key(self):
|
def test_saving_existing_token_without_changes_does_not_alter_key(self):
|
||||||
"""
|
|
||||||
Ensure that calling save() on an existing token without modifications
|
|
||||||
does not change its key.
|
|
||||||
"""
|
|
||||||
original_key = self.token.key
|
original_key = self.token.key
|
||||||
|
|
||||||
self.token.save()
|
self.token.save()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user