def METHOD_NAME(self):
    """Test _xml_data_element() with attributes"""
    self.writer._xml_data_element("foo", "bar", [("span", "8")])
    exp = """<foo span="8">bar</foo>"""
    got = self.fh.getvalue()
    self.assertEqual(got, exp)