Re: unittest, order of test execution

2009-01-27 Thread Yinon Ehrlich
On Jan 27, 11:33 am, Yinon Ehrlich wrote: > > But I was wondering, *should* this test be separated into two unit > > tests, one for each function? On the face of it, it looks that's how it > > should be done. > > > This, however, raises the question: what's the order of test execution > > in the u

Re: unittest, order of test execution

2009-01-27 Thread Yinon Ehrlich
> But I was wondering, *should* this test be separated into two unit > tests, one for each function? On the face of it, it looks that's how it > should be done. > > This, however, raises the question: what's the order of test execution > in the unittest? And how to pass values between unit tests?

unittest, order of test execution

2009-01-26 Thread mk
Hello everyone, I've got 2 functions to test, extrfromfile which returns a list of dictionaries, and extrvalues that extracts values from that list. Now I can test them both in one test case, like this: def test_extrfromfile(self): valist = ma.extrfromfile('loadavg_unittest.txt')