Skip to content

Instantly share code, notes, and snippets.

@lidaobing
Created April 12, 2013 08:29
Show Gist options
  • Select an option

  • Save lidaobing/5370490 to your computer and use it in GitHub Desktop.

Select an option

Save lidaobing/5370490 to your computer and use it in GitHub Desktop.
import unittest
class Test1(unittest.TestCase):
def setUp(self):
print 'Test1::SetUp'
def tearDown(self):
print 'Test1::tearDown'
class Test2(Test1):
def setUp(self):
super(Test2, self).setUp()
print 'Test2::SetUp'
def tearDown(self):
print 'Test2::tearDown'
super(Test2, self).tearDown()
def testFunc1(self):
print 'func1'
if __name__ == '__main__':
unittest.main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment