I'm using nose.
My current code is:
class A():
def __init__():
pass
def do_somthing(self):
do_it
class Test(unittest.TestCase):
def setUp(self):
self.a = A()
def testSomthing:
raise assert(self.a.do_something())
I don't want to create an instance of A class each test, I want to create it only once. How can i do that?