def test_password_hashing(): '''We are not storing passwords as plaintext, hooray ''' a = PersonFactory(password='******') assert a.check_password('python') assert a.password != 'python' assert a.password_hash != 'python'