1.待测方法: # 加法,返回 a+b 的值 def add(a,b): return a+b # 减法,返回 a-b 的值 def minus(a,b): return a-b # 乘法,返回 a*b 的值 def multi(a,b): return a*b # 除法,返回 a/b 的值 def divide(a,b): return a/b 2.测试用例 import unittest from UnittestDemo.mathfunc import * class TestMathFu…