#NEWLINE# def test_get_password_verify( self ) : #NEWLINE# #INDENT# env = { #NEWLINE# #INDENT# 'OS_VERIFY_PASSWORD' : 'True' , #NEWLINE# #UNINDENT# } #NEWLINE# self . useFixture ( fixtures . MonkeyPatch ( 'os.environ' , self ) ) #NEWLINE# self . useFixture ( fixtures . MonkeyPatch ( 'getpass.getpass' , ( lambda prompt : 'mellon' ) ) ) #NEWLINE# self . assertEqual ( 'mellon' , cliutils . get_password ( ) )