'Test _xml_data_element() with data requiring escaping'

def test_xml_data_element_with_escapes(self):

    self.writer._xml_data_element('foo', '&<>"', [('span', '8')])
    exp = '<foo    span="8">&amp;&lt;&gt;"</foo>'
    got = self.fh.getvalue()
    self.assertEqual(got, exp)
