#NEWLINE# def test_endpoints_base_url_from_env( self ) : #NEWLINE# #INDENT# base_url = 'http://www.st2.com' #NEWLINE# auth_url = 'http://www.st2.com:9100' #NEWLINE# api_url = 'http://www.st2.com:9101/v1' #NEWLINE# os . environ [ 'ST2_BASE_URL' ] = base_url #NEWLINE# args = [ 'trigger' , 'list' ] #NEWLINE# parsed_args = self . shell . parser . parse_args ( args ) #NEWLINE# client = self . shell . get_client ( parsed_args ) #NEWLINE# self . assertEqual ( client . endpoints [ 'base' ] , base_url ) #NEWLINE# self . assertEqual ( client . endpoints [ 'auth' ] , auth_url ) #NEWLINE# self . assertEqual ( client . endpoints [ 'api' ] , api_url )