0
我有下面的代碼片段 -Python沒有檢測到我的單元測試
import unittest
class SimpleWidgetTestCase(unittest.TestCase):
def setUp(self):
print 'setup'
def method_test(self):
print 'test method'
def tearDown(self):
print 'tear down'
if __name__ == "__main__":
unittest.main()
輸出 -
----------------------------------------------------------------------
Ran 0 tests in 0.000s
OK