Skip to content

Instantly share code, notes, and snippets.

@mattmcd
Last active May 5, 2016 07:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mattmcd/47df57a0a502e820bf96c7bb8b551fbd to your computer and use it in GitHub Desktop.
Save mattmcd/47df57a0a502e820bf96c7bb8b551fbd to your computer and use it in GitHub Desktop.
Test framework boilerplate in Python
# Test framework
from unittest import TestCase
from nose.tools import raises
# Objects under test
from foo import bar
class TestBar(TestCase):
def test_cool_bar_thing1(self):
self.assert(1==1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment