I want to create tests which are dependent on each other. That is the return value of one function (test case) should be used in other testcase.
I have tried using unittest and nose tests but unable to have functions which returns values and use them.
Are there any testing frameworks , which allow me to do so ?
UPDATE :
The test which i want to perform is as follows :
def setup():
//Some initializations
def func(id):
//some operations
assert ' ' not in name
def test_mine:
for loop of command line inputs
/////
assert id > 0
if (some condition)
for loop
yield func(id)
else
yield func(id)
So to be able to make func() a separate test case , i need to get the id which im unable to do