Skip to content

Instantly share code, notes, and snippets.

@jonashaag
Created July 26, 2011 13:49
Show Gist options
  • Save jonashaag/1106807 to your computer and use it in GitHub Desktop.
Save jonashaag/1106807 to your computer and use it in GitHub Desktop.
$ python2 test-unittest.py Foo.test_b
b
.
----------------------------------------------------------------------
Ran 1 test in 0.000s
OK
import unittest
class Foo(unittest.TestCase):
def test_a(self):
print 'a'
def test_b(self):
print 'b'
unittest.main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment