MCPcopy Index your code
hub / github.com/mongodb/mongo-python-driver / revive_host

Method revive_host

test/asynchronous/pymongo_mocks.py:176–178  ·  view source on GitHub ↗

Host is like 'a:1'.

(self, host)

Source from the content-addressed store, hash-verified

174 self.mock_down_hosts.append(host)
175
176 def revive_host(self, host):
177 """Host is like 'a:1'."""
178 self.mock_down_hosts.remove(host)
179
180 def set_wire_version_range(self, host, min_version, max_version):
181 self.mock_wire_versions[host] = (min_version, max_version)

Callers 1

test_reconnectMethod · 0.45

Calls 1

removeMethod · 0.45

Tested by 1

test_reconnectMethod · 0.36