Coverage for tests/test_math.py: 60%

8 statements  

« prev     ^ index     » next       coverage.py v7.2.1, created at 2023-03-12 01:51 -0800

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()