def _pre_setup(self): MockTestCase.setUp() TestCase.__pre_setup() def _post_teardown(self): TestCase._post_teardown(self) MockTestCase.tearDown()
def setUp(self): MockTestCase.setUp(self) self.content_handler = BaseContentHandler() self.basic_json = StringIO( """{ "a": [null, true, 1, 1.2, "Test Line: a"] }""" )
def setUp(self): MockTestCase.setUp(self) self.content_handler = YajlCTestContentHandler() self.out = self.content_handler.out
def _post_teardown(self): TestCase._post_teardown(self) MockTestCase.tearDown()
def _post_teardown(self): MockTestCase.tearDown(self) APITestCase._post_teardown(self)
def _pre_setup(self): APITestCase._pre_setup(self) MockTestCase.setUp(self) # optional: shortcut client handle for quick testing self.client = APIClient()