'Test _xml_data_element() with attributes'

def test_xml_data_element_with_attributes(self):

    self.writer._xml_data_element('foo', 'bar', [('span', '8')])
    exp = '<foo    span="8">bar</foo>'
    got = self.fh.getvalue()
    self.assertEqual(got, exp)
