擅长:python、mysql、java
<p>您可以在调用<em><a href="http://docs.python.org/library/unittest.html#unittest.main" rel="nofollow">unittest.main</a></em>之前完成设置工作。在</p>
<p>或者您可以将测试套件子类化并运行<a href="http://docs.python.org/library/unittest.html#unittest.TestCase.setUpClass" rel="nofollow">class-level setup method</a>。在</p>
<p>或者可以让测试设置将回调合并到用户定义的设置方法中。在</p>