Skip to content

Instantly share code, notes, and snippets.

@poliarush
Last active September 28, 2015 06:28
Show Gist options
  • Save poliarush/22a97cfdc02bb2769d3d to your computer and use it in GitHub Desktop.
Save poliarush/22a97cfdc02bb2769d3d to your computer and use it in GitHub Desktop.
setup and tear down separation
import unittest
class BaseTest(unittest.TestCase):
def setUp(self):
print('setup')
def tearDown(self):
print('tear down')
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