def run_suite(self, class_): mocktest._teardown() suite = unittest.makeSuite(class_) result = unittest.TestResult() suite.run(result) ret = result mocktest._setup() return result
def setUp(self): mocktest._setup() self.stderr = mock_wrapper().named("stderr") sys.stderr = self.stderr.mock self.output = mock_wrapper(sys.stderr.write) print "all expectations is %r" % (mocktest.mock.MockWrapper._all_expectations,)
def downup(self): mocktest._teardown() mocktest._setup()