Пример #1
0
 def has_usable_password(self):
     return is_password_usable(self.password)
Пример #2
0
 def test_make_unusable(self):
     "Check that you can create an unusable password."
     password = utils.make_password("any", None)
     self.assertFalse(utils.is_password_usable(password))
     self.assertFalse(utils.check_password("foobar", password))
Пример #3
0
 def _test_make_password(self, algo):
     password = utils.make_password(algo, "foobar")
     self.assertTrue(utils.is_password_usable(password))
     self.assertTrue(utils.check_password("foobar", password))
Пример #4
0
 def has_usable_password(self):
     return is_password_usable(self.password)
Пример #5
0
 def test_make_unusable(self):
     "Check that you can create an unusable password."
     password = utils.make_password("any", None)
     self.assertFalse(utils.is_password_usable(password))
     self.assertFalse(utils.check_password("foobar", password))
Пример #6
0
 def _test_make_password(self, algo):
     password = utils.make_password(algo, "foobar")
     self.assertTrue(utils.is_password_usable(password))
     self.assertTrue(utils.check_password("foobar", password))