예제 #1
0
def test_simple():
    compileCode("simpleTest", "def f(): return 42")

    import simpleTest
    AreEqual(simpleTest.f(), 42)
예제 #2
0
 def test_simple(self):
     self.compileCode("simpleTest", "def f(): return 42")
             
     import simpleTest
     self.assertEqual(simpleTest.f(), 42)    
예제 #3
0
def test_simple():    
    compileCode("simpleTest", "def f(): return 42")
            
    import simpleTest
    AreEqual(simpleTest.f(), 42)    
예제 #4
0
 def test_simple(self):
     self.compileCode("simpleTest", "def f(): return 42")
             
     import simpleTest
     self.assertEqual(simpleTest.f(), 42)