def setUp(self):
     self.clock = MockClock()
     self.store = Mock()
     self.as_api = Mock()
     self.recoverer = Mock()
     self.recoverer_fn = Mock(return_value=self.recoverer)
     self.txnctrl = _TransactionController(
         clock=self.clock, store=self.store, as_api=self.as_api,
         recoverer_fn=self.recoverer_fn
     )
Exemple #2
0
 def setUp(self):
     self.clock = MockClock()
     self.store = Mock()
     self.as_api = Mock()
     self.recoverer = Mock()
     self.recoverer_fn = Mock(return_value=self.recoverer)
     self.txnctrl = _TransactionController(clock=self.clock,
                                           store=self.store,
                                           as_api=self.as_api)
     self.txnctrl.RECOVERER_CLASS = self.recoverer_fn