def test_one(self):
    print('test_one')
print(self.data)

def test_two(self):
    print('test_two')
if __name__ == '__main__':
    unittest.main()
How to set up a resource shared by several unit tests?