Пример #1
0
 def test_blacklisted(self):
     BlacklistedPassword.objects.create(password='******')
     assert BlacklistedPassword.blocked('password')
     assert not BlacklistedPassword.blocked('passw0rd')
Пример #2
0
 def test_blacklisted(self):
     BlacklistedPassword.objects.create(password='******')
     assert BlacklistedPassword.blocked('password')
     assert not BlacklistedPassword.blocked('passw0rd')