Python, unit test - Pass command line arguments to setUp of unittest.TestCase
- by sberry2A
I have a script that acts as a wrapper for some unit tests written using the Python unittest module. In addition to cleaning up some files, creating an output stream and generating some code, it loads test cases into a suite using
unittest.TestLoader().loadTestsFromTestCase()
I am already using optparse to pull out several command-line…