Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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_error
Method · 0.95
test_client
Method · 0.95
test_discover_primary
Method · 0.45
test_reconnect
Method · 0.45
test_failover
Method · 0.45
test_local_threshold
Method · 0.45
Calls
no outgoing calls
Tested by
6
_test_network_error
Method · 0.76
test_client
Method · 0.76
test_discover_primary
Method · 0.36
test_reconnect
Method · 0.36
test_failover
Method · 0.36
test_local_threshold
Method · 0.36