title: __init__ for unittest.TestCase
body: <p>I'd like to add a couple of things to what the <code>unittest.TestCase</code> class does upon being initialized but I can't figure out how to do it.</p>
  
  <p>Right now I'm doing this:</p>
  
  <pre><code>#filename test.py
  
  class TestingClass(unittest.TestCase):
  
      def __init__(self):
          self.gen_stubs()
  
      def gen_stubs(self):
          # Create a couple of tempfiles/dirs etc etc.
          self.tempdir = tempfile.mkdtemp()
          # more stuff here
  </code></pre>
  
  <p>I'd like all the stubs to be generated only once for this entire set of tests. I can't use <code>setUpClass()</code> because I'm working on Python 2.4 (I haven't been able to get that working on python 2.7 either).</p>
  
  <p>What am I doing wrong here?</p>
  
  <p>I get this error:</p>
  
  <pre><code> `TypeError: __init__() takes 1 argument (2 given)` 
  </code></pre>
  
  <p>...and other errors when I move all of the stub code into <code>__init__</code> when I run it with the command <code>python -m unittest -v test</code>.</p>