Advertisement
kompilainenn

Untitled

Nov 29th, 2023
533
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.58 KB | None | 0 0
  1. import unittest
  2. from total_quadr import total_quadr
  3. from total_quadr import quadr_total
  4.  
  5. class ValauesTestCase(unittest.TestCase):
  6.     """Test for total_quadr.py"""
  7.     def test_total_quadr_value(self):
  8.         """The total_quadr function calculates values correct"""
  9.         result = total_quadr(2, 2, 3, 4, 5)
  10.         self.assertEqual(result, 54)
  11.        
  12.     def test_quadr_total_value(self):
  13.         """The quadr_total function calculates values correct"""
  14.         result = quadr_total(2, 2, 3, 4, 5)
  15.         self.assertEqual(result, 196)
  16.        
  17.        
  18. unittest.main()
  19.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement