def test_simple(): compileCode("simpleTest", "def f(): return 42") import simpleTest AreEqual(simpleTest.f(), 42)
def test_simple(self): self.compileCode("simpleTest", "def f(): return 42") import simpleTest self.assertEqual(simpleTest.f(), 42)