'Test the _write_auto_filter() method'

def test_write_auto_filter_4(self):

    filter_condition = 'x    ==    East    and    x    ==    North'
    exp = '<autoFilter    ref="A1:D51"><filterColumn    colId="0"><customFilters    and="1"><customFilter    val="East"/><customFilter    val="North"/></customFilters></filterColumn></autoFilter>'
    self.worksheet.filter_column('A', filter_condition)
    self.worksheet._write_auto_filter()
    got = self.fh.getvalue()
    self.assertEqual(got, exp)
