def test_should_create_verifier_with_reconciler(self): config = make_verifier_config(False) rec = self.mox.CreateMockAnything() verifier = base_verifier.Verifier(config, pool=self.pool, reconciler=rec) self.assertEqual(verifier.reconciler, rec)
def setUp(self): self.mox = mox.Mox() config = make_verifier_config(False) self.pool = self.mox.CreateMockAnything() self.reconciler = self.mox.CreateMockAnything() self.verifier_with_reconciler = base_verifier.Verifier( config, pool=self.pool, reconciler=self.reconciler) self.verifier_without_notifications = self\ ._verifier_with_notifications_disabled() self.verifier_with_notifications = self\ ._verifier_with_notifications_enabled()
def _verifier_with_notifications_enabled(self): config = make_verifier_config(True) reconciler = self.mox.CreateMockAnything() return base_verifier.Verifier(config, pool=self.pool, reconciler=reconciler)