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) ])
def test_create(self): self.m_etcd_watcher.assert_has_calls([ call.link(self.api._on_worker_died), ]) self.assertFalse(self.m_spawn.called)