예제 #1
0
 def test_minus(self):
     x, y = 2, 1
     instance = Calculator(x, y)
     assert instance.minus() == x - y, "Some issue in Minus Method"
예제 #2
0
 def test_multi(self):
     x, y = 2, 1
     instance = Calculator(x, y)
     assert instance.multi() == x * y, "Some issue in Multi Method"
예제 #3
0
 def test_add(self):
     x, y = 1, 2
     instance = Calculator(x, y)
     assert instance.add() == x + y, "Some issue in Add Method"
예제 #4
0
 def test_div(self):
     x, y = 2, 1
     instance = Calculator(x, y)
     assert instance.division() == x / y, "Some issue in Division Method"