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

Method setUp

test/test_auth.py:403–405  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

401class TestSCRAMSHA1(IntegrationTest):
402 @client_context.require_auth
403 def setUp(self):
404 super().setUp()
405 client_context.create_user("pymongo_test", "user", "pass", roles=["userAdmin", "readWrite"])
406
407 def tearDown(self):
408 client_context.drop_user("pymongo_test", "user")

Callers

nothing calls this directly

Calls 2

setUpMethod · 0.45
create_userMethod · 0.45

Tested by

no test coverage detected