docstr: Test a well-formedness error: we get the last error only
code: def test2(self):
      """Test a well-formedness error: we get the last error only"""
      s = "<x>\n<a>\n</x>"
      self.failUnlessXmlError(
          libxml2.readMemory,
          (s, len(s), "dummy.xml", None, 0),
          libxml2.treeError,
          domain=libxml2.XML_FROM_PARSER,
          code=libxml2.XML_ERR_TAG_NOT_FINISHED,
          message="Premature end of data in tag x line 1\n",
          level=libxml2.XML_ERR_FATAL,
          file="dummy.xml",
          line=3,
      )
  
file_path: turicreate/deps/src/libxml2-2.9.1/python/tests/tstLastError.py
imports: import sys, unittest
  import libxml2
label_desc: Use image node_id 6 for calling the TestCase obj's underlying member method code with example usage: obj.test2() without return types