安裝:easy_install nose
安裝失敗就下源碼安裝
可以進入到測試的目錄下直接
nosetests 自動運行所有文件中的測試方法
也可以指定文件名和方法名
nosetests pyfile.py:TestCaseCLassName.test_xxx_method
安裝:easy_install nose
安裝失敗就下源碼安裝
可以進入到測試的目錄下直接
nosetests 自動運行所有文件中的測試方法
也可以指定文件名和方法名
nosetests pyfile.py:TestCaseCLassName.test_xxx_method
class MetaCls(type): def __new__(cls, *args, **kwargs): print("in MetaCls") # return super(Meta