title: Unittest setUpClass not working
body: <p>I am trying to get started with unittest, but I am having a problem getting <code>setUpClass()</code> to work.  Here is my test code...</p>
  
  <pre><code>import unittest
  
  class TestRepGen(unittest.TestCase):
      """ Contains methods for training data testing """
  
      testvar = None
  
      @classmethod
      def setUpClass(cls):
          cls.testvar = 6
  
      def test_method(self):
          """ Ensure data is selected """
          self.assertIsNotNone(self.testvar,"self.testvar is None!")
  
  # run tests
  if __name__ == '__main__':
      unittest.main()
  </code></pre>
  
  <p>The assert error message is displayed, indicating that <code>self.testvar == None</code>, and has not been changed by <code>setUpClass()</code>. Is there something wrong with my code?</p>
  
  <p>I get the same result if I run the code from within my IDE (Wing), or directly from the command line. For the record, I am using Python 3.2.1 under Windows7.</p>