PYTHON-2803 Fix typos in auth tests

This commit is contained in:
Bernie Hackett 2021-09-23 16:02:58 -07:00
parent 968ee7ba96
commit b0a26601d4

View File

@ -156,7 +156,7 @@ class TestGSSAPI(unittest.TestCase):
client = MongoClient(mech_uri)
client[GSSAPI_DB].collection.find_one()
set_name = client.admin.command('HelloCompat.LEGACY_CMD').get('setName')
set_name = client.admin.command(HelloCompat.LEGACY_CMD).get('setName')
if set_name:
if not self.service_realm_required:
# Without authMechanismProperties
@ -222,7 +222,7 @@ class TestGSSAPI(unittest.TestCase):
thread.join()
self.assertTrue(thread.success)
set_name = client.admin.command('HelloCompat.LEGACY_CMD').get('setName')
set_name = client.admin.command(HelloCompat.LEGACY_CMD).get('setName')
if set_name:
client = MongoClient(GSSAPI_HOST,
GSSAPI_PORT,
@ -270,7 +270,7 @@ class TestSASLPlain(unittest.TestCase):
client = MongoClient(uri)
client.ldap.test.find_one()
set_name = client.admin.command('HelloCompat.LEGACY_CMD').get('setName')
set_name = client.admin.command(HelloCompat.LEGACY_CMD).get('setName')
if set_name:
client = MongoClient(SASL_HOST,
SASL_PORT,