#NEWLINE# def test_automatic_auth_skipped_if_token_provided_as_cli_argument( self ) : #NEWLINE# #INDENT# self . _write_mock_config ( ) #NEWLINE# shell = Shell ( ) #NEWLINE# shell . _get_auth_token = mock . Mock ( ) #NEWLINE# argv = [ 'action' , 'list' , '--token=bar' ] #NEWLINE# args = shell . parser . parse_args ( args = argv ) #NEWLINE# shell . get_client ( args = args ) #NEWLINE# self . assertEqual ( shell . _get_auth_token . call_count , 0 ) #NEWLINE# argv = [ 'action' , 'list' , '-t' , 'bar' ] #NEWLINE# args = shell . parser . parse_args ( args = argv ) #NEWLINE# shell . get_client ( args = shell ) #NEWLINE# self . assertEqual ( shell . _get_auth_token . call_count , 0 )