Calculator Method

Create a class Calculator that has two methods add and subtract which receive two numbers and perform the intended operations (returning the value). Example:

c = Calculator()
c.add(2, 5)  # 7
c.subtract(9, 6)  # 3
import unittest


class CalculatorTestCase(unittest.TestCase):

    def test_calculator_add(self):
        c = Calculator()
        self.assertEqual(c.add(2, 8), 10)

    def test_calculator_subtract(self):
        c = Calculator()
        self.assertEqual(c.subtract(7, 2), 5)