def test_avg(self): operation = Operations([1, 2, 3, 4], False) self.assertAlmostEqual(operation.avg(), 2.5, msg='Incorrect result')