def create_methods(tname, fname, cname):
    mname = "%s_%s" % (tname, fname.replace('.', '_'))

    def ch(fname, mname):
        def test_aux(self):
            return getattr(self, cname)(os.path.join(dirname, fname))
        test_aux.__name__ = mname
        return test_aux
    setattr(TestBash8, mname, ch(fname, mname))
dataset/ETHPy150Open redhat-cip/edeploy/build/test_bash_scripts.py/create_methods/original