def test_init(self): """TODO: fill in the docstring""" filename = pkg_resources.resource_filename(__name__, "samples/test1.xmp") with open(filename, 'r') as fptr: strbuffer = fptr.read() exempi.init() exempi.init() xmp = exempi.new_empty() exempi.parse(xmp, strbuffer) exempi.free(xmp) exempi.terminate() xmp = exempi.new_empty() exempi.parse(xmp, strbuffer) exempi.free(xmp) exempi.terminate() self.assertTrue(True)
def tearDown(self): exempi.terminate()