#NEWLINE# def test_use_pepper( ) : #NEWLINE# #INDENT# p = 'password' #NEWLINE# auth = authcode . Auth ( SECRET_KEY , pepper = '123' , hash = 'sha512_crypt' ) #NEWLINE# hashed = auth . hash_password ( p ) #NEWLINE# assert auth . password_is_valid ( p , hashed ) #NEWLINE# auth = authcode . Auth ( SECRET_KEY , pepper = 'abc' , hash = 'sha512_crypt' ) #NEWLINE# assert ( not auth . password_is_valid ( auth , hashed ) )