Coverage for calc_test.py: 100%

8 statements  

« prev     ^ index     » next       coverage.py v7.5.1, created at 2024-05-17 15:05 +0000

1import unittest 

2from calc import Calculations 

3 

4class TestCalculations(unittest.TestCase): 

5 

6 def test_sum(self): 

7 calculation = Calculations(8, 2) 

8 self.assertEqual(calculation.get_sum(), 10, 'The sum is wrong.') 

9 

10if __name__ == '__main__': 

11 unittest.main()