Exemplo n.º 1
0
 def test_blacklisted(self):
     BlacklistedPassword.objects.create(password='******')
     assert BlacklistedPassword.blocked('password')
     assert not BlacklistedPassword.blocked('passw0rd')
Exemplo n.º 2
0
 def test_blacklisted(self):
     BlacklistedPassword.objects.create(password='******')
     assert BlacklistedPassword.blocked('password')
     assert not BlacklistedPassword.blocked('passw0rd')