def METHOD_NAME():
    curdir = os.getcwd()
    try:
        shutil.rmtree('myplugin')
    except:
        pass
    try:
        assert(os.system('openrave-createplugin.py myplugin --module=MyTestModule') == 0)
        programdir=CompileProject('myplugin',os.path.join('myplugin','build'))
        os.chdir('myplugin')
        assert(os.system(GetPythonCommand()+'testplugin.py') == 0)
    finally:
        os.chdir(curdir)
        shutil.rmtree('myplugin')
    try:
        shutil.rmtree('myprogram')
    except:
        pass
    try:
        assert(os.system('openrave-createplugin.py myprogram --usecore') == 0)
        programdir=CompileProject('myprogram',os.path.join('myprogram','build'))
        os.chdir('myprogram')
        assert(os.system(GetRunCommand()+os.path.join(os.path.relpath(programdir,'myprogram'),'myprogram')) == 0)
    finally:
        os.chdir(curdir)
        shutil.rmtree('myprogram')