def test_write_auto_filter_1(self):

        self.worksheet._write_auto_filter()

        exp = """<autoFilter ref="A1:D51"/>"""
        got = self.fh.getvalue()

        self.assertEqual(got, exp)
Test the _write_auto_filter() method
dataset/ETHPy150Open jmcnamara/XlsxWriter/xlsxwriter/test/worksheet/test_write_auto_filter.py/TestWriteAutoFilter.test_write_auto_filter_1