예제 #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
예제 #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,)
예제 #3
0
	def downup(self):
		mocktest._teardown()
		mocktest._setup()