Example #1
0
 def run_suite(self, class_):
     mocktest._teardown()
     suite = unittest.makeSuite(class_)
     result = unittest.TestResult()
     suite.run(result)
     ret = result
     mocktest._setup()
     return result
Example #2
0
 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,)
Example #3
0
	def downup(self):
		mocktest._teardown()
		mocktest._setup()