Python中unittest模块做UT(单元测试)使用实例
待测试的类(widget.py) 复制 # Widget.py # Python 2.7.6 class Widget: def __init__(self, size = (40,40)): self.size = si...
待测试的类(widget.py) 复制 # Widget.py # Python 2.7.6 class Widget: def __init__(self, size = (40,40)): self.size = si...