#NEWLINE# def test_bash( self ) : #NEWLINE# #INDENT# from powerline.shell import ShellPowerline #NEWLINE# args = Args ( last_exit_code = 1 , jobnum = 0 , ext = [ 'shell' ] , renderer_module = '.bash' , config_override = { #NEWLINE# #INDENT# 'ext' : { #NEWLINE# #INDENT# 'shell' : { #NEWLINE# #INDENT# 'theme' : 'default_leftonly' , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } ) #NEWLINE# with ShellPowerline ( args , logger = get_logger ( ) , run_once = False ) as powerline : #NEWLINE# #INDENT# powerline . render ( segment_info = { #NEWLINE# #INDENT# 'args' : powerline , #NEWLINE# #UNINDENT# } ) #NEWLINE# #UNINDENT# with ShellPowerline ( args , logger = get_logger ( ) , run_once = False ) as powerline : #NEWLINE# #INDENT# powerline . render ( segment_info = { #NEWLINE# #INDENT# 'args' : args , #NEWLINE# #UNINDENT# } )