I need to find the name of the test method about to be run from within the SetUp()
method that unittest runs before each test. How can I do this without running every test method seperately?
Example:
class Testing(unittest2.TestCase):
def setUp():
# wish i could write:
string = getNextTestMethodName()
def test_example(self):
self.assertNotEqual(0,1)