title: Unit testing error: "setUpClass error: NameError: global name 'doSomething()' is not defined"
body: <p>I am trying to execute <em>doSomething()</em> before every test I have. I just want to execute doSomething() one time. However, I am getting the next error message: <strong>"setUpClass error: NameError: global name 'doSomething' is not defined"</strong> </p>
  
  <p>I have seen several examples of the implementation of setUpClass here in stackoverflow and my code is exactly as in those examples. I have been trying to change a lot of things in my code to make it works with no luck and I feel I am a little bit lost here.</p>
  
  <p>Can anybody help me? Am I missing something?</p>
  
  <p>Here is my code:</p>
  
  <pre><code>class Test_A(unittest.TestCase):
     def doSomething(self):
          print("class A")
  
     @classmethod
     def setUpClass(cls):
          doSomething()
  
     def test_1(self):
          print("test 1")
  
     def test_2(self):
          print("test 2")
  </code></pre>
  
  <p>I am using <em>python 2.7</em></p>