def tearDown(self):
    print('tearing down')

def test_sample1(self):
    print('test1')

def test_sample2(self):
    print('test2')
How can I define a setup and tear down for all tests inside a module