Example #1
0
 def test_check_password(self):
     # Test unicode encrypted password.
     encrypted_password = '******'
     password = '******'
     result = check_password(encrypted_password, password)
     self.assertTrue(result)
Example #2
0
 def test_check_none_bcrypt_password(self):
     # Test that encrypted password is none bcrypt.
     encrypted_password = '******'
     password = '******'
     result = check_password(encrypted_password, password)
     self.assertFalse(result)