示例#1
0
 def setUp(self):
     MockTransaction.__enter__()
     super(MockMixin, self).setUp()
示例#2
0
 def tearDown(self):
     super(MockMixin, self).tearDown()
     MockTransaction.__exit__()
示例#3
0
 def validate_mocks(self):
     """
     Forces a validation of mocks immediately instead of at the end of the test
     """
     MockTransaction.__exit__()
     MockTransaction.__enter__()