在python中使用单元测试的多种设置方法

时间:2016-03-24 10:29:41

标签: python python-unittest

您好目前我的python单元测试用例采用以下模式,

create some setup in "def setUpClass(cls):"
multiple test case method as "def test_*(self):"
And delete created items in "def tearDownClass(cls):"

现在,我的方案以下列方式更改,

create some setup in "def setUpClass(cls):"
multiple test case method as "def test_*(self):"
How to perform some operations which is created in setup?
Again multiple test case method to validate "def test_*(self):"
And delete created items in "def tearDownClass(cls):"

0 个答案:

没有答案