Skip to content

Commit b0a2660

Browse files
committed
PYTHON-2803 Fix typos in auth tests
1 parent 968ee7b commit b0a2660

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/test_auth.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ def test_gssapi_simple(self):
156156
client = MongoClient(mech_uri)
157157
client[GSSAPI_DB].collection.find_one()
158158

159-
set_name = client.admin.command('HelloCompat.LEGACY_CMD').get('setName')
159+
set_name = client.admin.command(HelloCompat.LEGACY_CMD).get('setName')
160160
if set_name:
161161
if not self.service_realm_required:
162162
# Without authMechanismProperties
@@ -222,7 +222,7 @@ def test_gssapi_threaded(self):
222222
thread.join()
223223
self.assertTrue(thread.success)
224224

225-
set_name = client.admin.command('HelloCompat.LEGACY_CMD').get('setName')
225+
set_name = client.admin.command(HelloCompat.LEGACY_CMD).get('setName')
226226
if set_name:
227227
client = MongoClient(GSSAPI_HOST,
228228
GSSAPI_PORT,
@@ -270,7 +270,7 @@ def test_sasl_plain(self):
270270
client = MongoClient(uri)
271271
client.ldap.test.find_one()
272272

273-
set_name = client.admin.command('HelloCompat.LEGACY_CMD').get('setName')
273+
set_name = client.admin.command(HelloCompat.LEGACY_CMD).get('setName')
274274
if set_name:
275275
client = MongoClient(SASL_HOST,
276276
SASL_PORT,

0 commit comments

Comments
 (0)