def test_float_minus(self): self.assertEqual(calculator.minus(4.2, 3.2), 1.0)
def test_int2_minus(self): self.assertEqual(calculator.minus(9, 4), 5)
def test_int_minus(self): self.assertEqual(calculator.minus(9, 3), 6)
def testMinusFunction(self): self.assertEqual(minus(10, 0), 10)
import cal var1 = cal.modelname var2 = cal.plus(3, 4) var3 = cal.minus(7, 2) print(var, var2, var3)
def minus(): a = num(request.args.get('a')) b = num(request.args.get('b')) return str(calculator.minus(a, b))