def _test_functional(self, root):
        info = os.path.join(os.path.dirname(__file__), root + ".info")

        saved_path = sys.path[:]
        try:
            sys.path.insert(0, os.path.dirname(__file__))
            m = __import__("data_%s" % root)

            tested = parse(open(info).read())
            self.assertEqual(tested, m.ref, "divergence for %s" % info)
        finally:
            sys.path = saved_path
dataset/ETHPy150Open cournape/Bento/bento/parser/tests/functionals/test.py/TestPackages._test_functional/original