Skip to content

Instantly share code, notes, and snippets.

@jorgenschaefer
Last active December 22, 2015 20:59
Show Gist options
  • Save jorgenschaefer/6530464 to your computer and use it in GitHub Desktop.
Save jorgenschaefer/6530464 to your computer and use it in GitHub Desktop.
# frobnicator.py
class Frobnicate(object):
def gurgle(self):
...
def bargle(self):
...
# test_frobnicator.py
class FrobnicateTestCase(TestCase):
def setUp(self):
self.frob = Frobnicate()
class TestGurgle(FrobnicateTestCase):
def test_should_gurgle_loudly(self):
...
def test_should_fail_without_water(self):
...
class TestBargle(FrobnicateTestCase):
def test_should_bargle_happily(self):
...
def test_should_bargle_sadly_on_error(self):
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment