def test_odd(self, func1):
     func1.return_value = 33
     result = func2()
     self.assertEqual(result, "odd")
 def test_even(self, func1):
     func1.return_value = 24
     result = func2()
     self.assertEqual(result, "even")
Beispiel #3
0
def func1A():
    global var1
    var1 = 'A'
    import mod2
    mod2.func2()
Beispiel #4
0
def func1A():
    global var1
    var1 = "A"
    mod2.func2()
Beispiel #5
0
 def test_odd(self, func1):
     func1.return_value = 33
     result = func2()
     self.assertEqual(result, "odd")
Beispiel #6
0
 def test_even(self, func1):
     func1.return_value = 24
     result = func2()
     self.assertEqual(result, "even")