#NEWLINE# def test_print_list_raises( self ) : #NEWLINE# #INDENT# out = moves . StringIO ( ) #NEWLINE# self . assertRaisesRegexp ( ValueError , 'Field labels list.*has different number of elements than fields list' , cliutils . print_list , [ self . TestObj ( ) ] , [ 'x' ] , field_labels = [ 'x' , 'y' ] , sortby_index = None , out = out )