#NEWLINE# def test_print_list_field_labels_too_many( self ) : #NEWLINE# #INDENT# objs = [ _FakeResult ( 'k1' , 1 ) , _FakeResult ( 'k3' , 3 ) , _FakeResult ( 'k2' , 2 ) ] #NEWLINE# field_labels = [ 'Another Name' , 'Another Value' , 'Redundant' ] #NEWLINE# self . assertRaises ( ValueError , cliutils . print_list , objs , [ 'Name' , 'Value' ] , sortby_index = None , field_labels = field_labels )