Пример #1
0
 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)
Пример #2
0
 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()
Пример #3
0
 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)