ITeye博客

python

共 1 篇文章

unittest和doctest的使用

使用python unittest做测试 http://www.cnblogs.com/imouren/archive/2011/08/04/2127997.html python unittest单元测试 http://catmic27.blog.51cto.com/2517040/946852 # coding: utf-8 class Area: def __init__(self, width=100, height=100): self._width = width self._height = height def get_width(self): return self._wi…

2012-07-31 21:25 · python · 单元测试