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

Method revive_host

test/pymongo_mocks.py:175–177  ·  view source on GitHub ↗

Host is like 'a:1'.

(self, host)

Source from the content-addressed store, hash-verified

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

Callers 2

test_clientMethod · 0.95
test_reconnectMethod · 0.45

Calls 1

removeMethod · 0.45

Tested by 2

test_clientMethod · 0.76
test_reconnectMethod · 0.36