亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

python - 繼承自nose.case.Test的測試樣例類的測試方法無法被nosetests執(zhí)行是怎么回事?
天蓬老師
天蓬老師 2017-04-17 17:37:22
0
1
339
import nose.case
from nose.tools import assert_equal

class TestTest(nose.case.Test):

    def test_hehe(self):
        assert_equal(1, 1)

    pass

就是這樣的代碼,用nosetests test.py命令執(zhí)行居然是這樣的結(jié)果

而如果繼承自unittest.TestCase就沒有這個問題。為什么?

天蓬老師
天蓬老師

歡迎選擇我的課程,讓我們一起見證您的進(jìn)步~~

reply all(1)
迷茫

The official document says this:

A test class is a class defined in a test module that matches testMatch or is a subclass of unittest.TestCase. 
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template