摘要: class unittest.TestSuite(tests=()) This class represents an aggregation of individul tests cases and test suites. The class presents the interface ne... 阅读全文
posted @ 2015-07-11 18:15 isister 阅读(268) 评论(0) 推荐(0)
摘要: 1. Test Casesclass unittest.TestCase(methodName='runTest')Methods:setUp() Methods called to prepare the test fixture. This is called immediately befo... 阅读全文
posted @ 2015-07-11 18:00 isister 阅读(393) 评论(0) 推荐(0)
摘要: 官网文档地址如下:https://docs.python.org/2.7/library/unittest.html?highlight=unittest#test-casesunittest, 又叫PyUnit, 支持测试自动化,共享测试setup(setUp()方法)和shutdown(tear... 阅读全文
posted @ 2015-07-11 15:26 isister 阅读(1462) 评论(0) 推荐(0)