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?
On Jan 27, 11:33 am, Yinon Ehrlich yinon...@gmail.com 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
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')