Created
July 26, 2011 13:49
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
$ python2 test-unittest.py Foo.test_b | |
b | |
. | |
---------------------------------------------------------------------- | |
Ran 1 test in 0.000s | |
OK |
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 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