def test_write_custom_filters_1(self):

        self.worksheet._write_custom_filters([4, 4000])

        exp = """<customFilters><customFilter operator="greaterThan" val="4000"/></customFilters>"""
        got = self.fh.getvalue()

        self.assertEqual(got, exp)
Test the _write_custom_filters() method
dataset/ETHPy150Open jmcnamara/XlsxWriter/xlsxwriter/test/worksheet/test_write_custom_filters.py/TestWriteCustomFilters.test_write_custom_filters_1