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

Method kill_host

test/pymongo_mocks.py:171–173  ·  view source on GitHub ↗

Host is like 'a:1'.

(self, host)

Source from the content-addressed store, hash-verified

169 return c
170
171 def kill_host(self, host):
172 """Host is like 'a:1'."""
173 self.mock_down_hosts.append(host)
174
175 def revive_host(self, host):
176 """Host is like 'a:1'."""

Callers 6

_test_network_errorMethod · 0.95
test_clientMethod · 0.95
test_discover_primaryMethod · 0.45
test_reconnectMethod · 0.45
test_failoverMethod · 0.45
test_local_thresholdMethod · 0.45

Calls

no outgoing calls

Tested by 6

_test_network_errorMethod · 0.76
test_clientMethod · 0.76
test_discover_primaryMethod · 0.36
test_reconnectMethod · 0.36
test_failoverMethod · 0.36
test_local_thresholdMethod · 0.36