#NEWLINE# def test_write_builder( self ) : #NEWLINE# #INDENT# self . create_sample_ring ( ) #NEWLINE# argv = [ '' , self . tmpfile , 'rebalance' ] #NEWLINE# self . assertSystemExit ( EXIT_SUCCESS , ringbuilder . main , argv ) #NEWLINE# argv = [ '' , self . tmpfile , 'write_builder' ] #NEWLINE# exp_results = { #NEWLINE# #INDENT# 'valid_exit_codes' : [ 2 ] , #NEWLINE# #UNINDENT# } #NEWLINE# self . run_srb ( * argv , exp_results = exp_results )