def test_blacklisted(self): BlacklistedPassword.objects.create(password='******') assert BlacklistedPassword.blocked('password') assert not BlacklistedPassword.blocked('passw0rd')