Coverage for tests/test_math.py: 60%

Shortcuts on this page

r m x p   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

8 statements  

1import unittest 

2 

3 

4def add(x, y): 

5 return x + y 

6 

7 

8class MyTest(unittest.TestCase): 

9 def test(self): 

10 self.assertEqual(add(3, 4), 7) 

11 

12 

13if __name__ == '__main__': 13 ↛ 14line 13 didn't jump to line 14, because the condition on line 13 was never true

14 unittest.main()