Last active
September 28, 2015 06:28
-
-
Save poliarush/22a97cfdc02bb2769d3d to your computer and use it in GitHub Desktop.
setup and tear down separation
This file contains 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 BaseTest(unittest.TestCase): | |
def setUp(self): | |
print('setup') | |
def tearDown(self): | |
print('tear down') |
This file contains 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 | |
from base import BaseTest | |
class TestSomething(BaseTest): | |
def test_something(self): | |
print('do testing') | |
unittest.main() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment