Example #1
0
 def has_usable_password(self):
     return is_password_usable(self.password)
Example #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))
Example #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))
Example #4
0
 def has_usable_password(self):
     return is_password_usable(self.password)
Example #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))
Example #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))