def testAddSomeParamsWithNewLineSymbol(self):

        calc = Calculator()

        expected = 6
        resulted = calc.add("1\\n2,3")

        self.assertEquals(expected, resulted, "Adding some params Error")

        expected = 12
        resulted = calc.add("1,2\\n3,6")

        self.assertEquals(expected, resulted, "Adding some params Error")

        expected = 5
        resulted = calc.add("1,1\\n3")

        self.assertEquals(expected, resulted, "Adding some params Error")

        expected = 30
        resulted = calc.add("10\\n10\\n10")

        self.assertEquals(expected, resulted, "Adding some params Error")

        pass
    def testAddTwoParams(self):

        calc = Calculator()

        expected = 2
        resulted = calc.add("1,1")

        self.assertEquals(expected, resulted, "Adding two params Error")

        expected = 3
        resulted = calc.add("1,2")

        self.assertEquals(expected, resulted, "Adding two params Error")

        expected = 1
        resulted = calc.add("0,1")

        self.assertEquals(expected, resulted, "Adding two params Error")

        expected = 5
        resulted = calc.add("3,2")

        self.assertEquals(expected, resulted, "Adding two params Error")

        expected = 20
        resulted = calc.add("10,10")

        self.assertEquals(expected, resulted, "Adding two params Error")

        pass
    def testAddSomeParams(self):

        calc = Calculator()

        expected = 6
        resulted = calc.add("1,2,3")

        self.assertEquals(expected, resulted, "Adding some params Error")

        expected = 12
        resulted = calc.add("1,2,3,6")

        self.assertEquals(expected, resulted, "Adding some params Error")

        expected = 5
        resulted = calc.add("1,1,3")

        self.assertEquals(expected, resulted, "Adding some params Error")

        expected = 30
        resulted = calc.add("10,10,10")

        self.assertEquals(expected, resulted, "Adding some params Error")

        pass
 def test_divide(self):
     self._test(Calculator().divide, [
         (1, 3, .333),
         (5, 8, .625),
         (13, 21, .619),
         (3, 1, 3),
         (8, 5, 1.6),
         (21, 13, 1.615),
     ])
    def testAddNoParams(self):

        calc = Calculator()

        expected = 0
        resulted = calc.add("")

        self.assertEquals(expected, resulted, "Adding no params Error")

        pass
 def test_divide(self):
     self._test(Calculator().divide, [
         (1, 3, .333),
         (5, 8, .625),
         (13, 21, .619),
         #(0, 0, ZeroDivisionError), # this is another change
         (3, 1, 3),
         (8, 5, 1.6),
         (21, 13, 1.615),
     ])
 def test_multiply(self):
     self._test(Calculator().multiply, [
         (1, 3, 3),
         (5, 8, 40),
         (13, 21, 273),
         (0, 0, 0),
         (3, 1, 3),
         (8, 5, 40),
         (21, 13, 273),
     ])
 def test_subtract(self):
     self._test(Calculator().subtract, [
         (1, 3, -2),
         (5, 8, -3),
         (13, 21, -8),
         (0, 0, 0),
         (3, 1, 2),
         (8, 5, 3),
         (21, 13, 8),
     ])
 def test_add(self):
     self._test(Calculator().add, [
         (1, 3, 4),
         (5, 8, 13),
         (13, 21, 34),
         (0, 0, 0),
         (3, 1, 4),
         (8, 5, 13),
         (21, 13, 34),
     ])
    def testAddOneParam(self):

        calc = Calculator()

        expected = 1
        resulted = calc.add("1")

        self.assertEquals(expected, resulted, "Adding one param Error")

        expected = 2
        resulted = calc.add("2")

        self.assertEquals(expected, resulted, "Adding one param Error")

        expected = 3
        resulted = calc.add("3")

        self.assertEquals(expected, resulted, "Adding one param Error")

        pass