Example #1
0
def test_main():
    compileCode("mainTest", "def f(): return __name__")
    #this probably won't work. Need to verify once bug is fixed.
    import mainTest
    AreEqual(mainTest.f(), "mainTest")
Example #2
0
def test_main():
    compileCode("mainTest", "def f(): return __name__")
    #this probably won't work. Need to verify once bug is fixed.
    import mainTest
    AreEqual(mainTest.f(), "mainTest")