Пример #1
0
 def test_create(self):
     self.m_etcd_watcher.assert_has_calls([
         call.link(self.api._on_worker_died),
         call.start(),
     ])
     self.m_spawn.assert_has_calls([
         call(self.api._periodically_resync),
         call(self.api._periodically_resync).link_exception(
             self.api._on_worker_died)
     ])
Пример #2
0
 def test_create(self):
     self.m_etcd_watcher.assert_has_calls([
         call.link(self.api._on_worker_died),
         call.start(),
     ])
     self.m_spawn.assert_has_calls([
         call(self.api._periodically_resync),
         call(self.api._periodically_resync).link_exception(
             self.api._on_worker_died)
     ])
Пример #3
0
 def test_create(self):
     self.m_etcd_watcher.assert_has_calls([
         call.link(self.api._on_worker_died),
     ])
     self.assertFalse(self.m_spawn.called)
Пример #4
0
 def test_create(self):
     self.m_etcd_watcher.assert_has_calls([
         call.link(self.api._on_worker_died),
     ])
     self.assertFalse(self.m_spawn.called)