MCPcopy
hub / github.com/django/django / test_make_token

Method test_make_token

tests/auth_tests/test_tokens.py:23–27  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

21
22class TokenGeneratorTest(TestCase):
23 def test_make_token(self):
24 user = User.objects.create_user("tokentestuser", "test2@example.com", "testpw")
25 p0 = PasswordResetTokenGenerator()
26 tk1 = p0.make_token(user)
27 self.assertIs(p0.check_token(user, tk1), True)
28
29 def test_10265(self):
30 """

Callers

nothing calls this directly

Calls 4

make_tokenMethod · 0.95
check_tokenMethod · 0.95
create_userMethod · 0.45

Tested by

no test coverage detected