#NEWLINE# def test_write_auto_filter_21( self ) : #NEWLINE# #INDENT# 'Test the _write_auto_filter() method' #NEWLINE# matches = [ 'February' , 'January' , 'July' , 'June' ] #NEWLINE# exp = '<autoFilter ref="A1:D51"><filterColumn colId="3"><filters><filter val="February"/><filter val="January"/><filter val="July"/><filter val="June"/></filters></filterColumn></autoFilter>' #NEWLINE# self . worksheet . filter_column_list ( 3 , matches ) #NEWLINE# self . worksheet . _write_auto_filter ( ) #NEWLINE# got = self . fh . getvalue ( ) #NEWLINE# self . assertEqual ( got , exp )