Unittest: how to pass information to TestCase classes?

2010-10-26 Thread AK
Hi, I have a question about unittest: let's say I create a temp dir for my tests, then use loadTestsFromNames() to load my tests from packages and modules they're in, then use TextTestRunner.run() to run the tests, how can I pass information to TestCase instances, e.g. the location of the temp

Re: Unittest: how to pass information to TestCase classes?

2010-10-26 Thread Ben Finney
AK andrei@gmail.com writes: Hi, I have a question about unittest: let's say I create a temp dir for my tests, then use loadTestsFromNames() to load my tests from packages and modules they're in, then use TextTestRunner.run() to run the tests, how can I pass information to TestCase

Re: Unittest: how to pass information to TestCase classes?

2010-10-26 Thread Steve Holden
On 10/26/2010 2:46 PM, AK wrote: Hi, I have a question about unittest: let's say I create a temp dir for my tests, then use loadTestsFromNames() to load my tests from packages and modules they're in, then use TextTestRunner.run() to run the tests, how can I pass information to TestCase