def test_unusable_password_checks_false(self):
     # check_password() must always return False for unusable passwords.
     p = make_password(None)
     self.assertTrue(not check_password(None, p))
 def test_check_password(self):
     p = make_password(self.password)
     self.assertTrue(check_password(self.password, p))
 def test_unusable_password_prefix_for_none_password(self):
     # Providing None to make_password() must result in a string
     # starting with !.
     p = make_password(None)
     self.assertTrue(p.startswith('!'), p)
 def test_make_password(self):
     p = make_password(self.password)