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

Method assertClientWorks

test/test_ssl.py:135–142  ·  view source on GitHub ↗
(self, client)

Source from the content-addressed store, hash-verified

133 saved_port: int
134
135 def assertClientWorks(self, client):
136 coll = client.pymongo_test.ssl_test.with_options(
137 write_concern=WriteConcern(w=client_context.w)
138 )
139 coll.drop()
140 coll.insert_one({"ssl": True})
141 self.assertTrue((coll.find_one())["ssl"])
142 coll.drop()
143
144 @unittest.skipUnless(HAVE_SSL, "The ssl module is not available.")
145 def setUp(self):

Callers 4

test_simple_sslMethod · 0.95

Calls 5

WriteConcernClass · 0.90
with_optionsMethod · 0.45
dropMethod · 0.45
insert_oneMethod · 0.45
find_oneMethod · 0.45

Tested by

no test coverage detected