2015年8月25日 星期二

A way to output pyunit test name in setup()

You can use self._testMethodName. This is inherited from the unittest.TestCase parent class.
def setUp():
    print "In method", self._testMethodName

refer : http://stackoverflow.com/questions/4504622/a-way-to-output-pyunit-test-name-in-setup

沒有留言:

張貼留言