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
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
1import unittest
4def add(x, y):
5 return x + y
8class MyTest(unittest.TestCase):
9 def test(self):
10 self.assertEqual(add(3, 4), 7)
13if __name__ == '__main__': 13 ↛ 14line 13 didn't jump to line 14, because the condition on line 13 was never true
14 unittest.main()