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

Method test_replace_one

test/test_srv_polling.py:201–205  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

199 self.run_scenario(response, True)
200
201 def test_replace_one(self):
202 response = self.BASE_SRV_RESPONSE[:]
203 response.remove(("localhost.test.build.10gen.cc", 27018))
204 response.append(("localhost.test.build.10gen.cc", 27019))
205 self.run_scenario(response, True)
206
207 def test_replace_both_with_one(self):
208 response = [("localhost.test.build.10gen.cc", 27019)]

Callers

nothing calls this directly

Calls 2

run_scenarioMethod · 0.95
removeMethod · 0.45

Tested by

no test coverage detected