#NEWLINE# def test_pivot_by_lambda_group_name_sequence_invalid( self ) : #NEWLINE# #INDENT# table = Table ( self . rows , self . column_names , self . column_types ) #NEWLINE# with self . assertRaises ( ValueError ) : #NEWLINE# #INDENT# pivot_table = table . pivot ( [ 'race' , 'gender' ] , key_name = 'foo' )