Created
November 10, 2011 19:13
-
-
Save markpasc/1355822 to your computer and use it in GitHub Desktop.
python test chunking
This file contains hidden or 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
from unittest import TestCase | |
class TestSomething(TestCase): | |
def test_thing(self): | |
thing = do_a_thing() | |
self.assertEqual(thing.foo, 'bar') | |
self.assertEqual(thing.baz, 'quux') | |
self.assertEqual(thing.arf, 'moo') | |
# other tests in other test_* methods |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Ok, so my "what i write in practice" is not uncommon. :-)