Created
April 12, 2013 08:29
-
-
Save lidaobing/5370490 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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