#NEWLINE# def test_authorize( self ) : #NEWLINE# #INDENT# 'Testing Beanstalk authorization password storage' #NEWLINE# account = self . _get_hosting_account ( ) #NEWLINE# service = account . service #NEWLINE# self . assertFalse ( service . is_authorized ( ) ) #NEWLINE# service . authorize ( 'myuser' , 'abc123' , None ) #NEWLINE# self . assertIn ( 'password' , service . data ) #NEWLINE# self . assertNotEqual ( account . data [ 'password' ] , 'abc123' ) #NEWLINE# self . assertTrue ( service . is_authorized ( ) )