#NEWLINE# def testWithEncryptedVolumes( self ) : #NEWLINE# #INDENT# self . mox . StubOutClassWithMocks ( main . tkinter , 'GuiOauth' ) #NEWLINE# gui = main . tkinter . GuiOauth ( 'https://cvest.appspot.com' ) #NEWLINE# gui . EncryptedVolumePrompt ( ) #NEWLINE# self . mox . StubOutWithMock ( main . corestorage , 'GetStateAndVolumeIds' ) #NEWLINE# main . corestorage . GetStateAndVolumeIds ( ) . AndReturn ( ( None , [ 'mock_volume_id' ] , [ ] ) ) #NEWLINE# opts = mox . MockAnything ( ) #NEWLINE# opts . login_type = 'oauth2' #NEWLINE# opts . oauth2_client_id = 'stub_id' #NEWLINE# opts . oauth2_client_secret = 'stub_secret' #NEWLINE# opts . server_url = 'https://cvest.appspot.com' #NEWLINE# self . mox . ReplayAll ( ) #NEWLINE# main . main ( gui ) #NEWLINE# self . mox . VerifyAll ( )