'Test the _write_xf() method. Horizontal alignment = distributed + indent.'

def test_write_xf_23(self):

    properties = {'align': 'justify_distributed', 'indent': 1}
    xf_format = Format(properties)
    self.styles._write_xf(xf_format)
    exp = '<xf    numFmtId="0"    fontId="0"    fillId="0"    borderId="0"    xfId="0"    applyAlignment="1"><alignment    horizontal="distributed"    indent="1"/></xf>'
    got = self.fh.getvalue()
    self.assertEqual(got, exp)
