@@ -142,7 +142,7 @@ def test_init(self):
142
142
self .assertEqual (opts ._mongocryptd_bypass_spawn , False )
143
143
self .assertEqual (opts ._mongocryptd_spawn_path , "mongocryptd" )
144
144
self .assertEqual (opts ._mongocryptd_spawn_args , ["--idleShutdownTimeoutSecs=60" ])
145
- self .assertEqual (opts ._kms_tls_options , {} )
145
+ self .assertEqual (opts ._kms_tls_options , None )
146
146
147
147
@unittest .skipUnless (_HAVE_PYMONGOCRYPT , "pymongocrypt is not installed" )
148
148
def test_init_spawn_args (self ):
@@ -170,7 +170,7 @@ def test_init_kms_tls_options(self):
170
170
# Error cases:
171
171
with self .assertRaisesRegex (TypeError , r'kms_tls_options\["kmip"\] must be a dict' ):
172
172
opts = AutoEncryptionOpts ({}, "k.d" , kms_tls_options = {"kmip" : 1 })
173
- opts . _parse_kms_tls_options (_IS_SYNC )
173
+ _parse_kms_tls_options (opts . _kms_tls_options , _IS_SYNC )
174
174
175
175
tls_opts : Any
176
176
for tls_opts in [
@@ -180,12 +180,12 @@ def test_init_kms_tls_options(self):
180
180
]:
181
181
with self .assertRaisesRegex (ConfigurationError , "Insecure TLS options prohibited" ):
182
182
opts = AutoEncryptionOpts ({}, "k.d" , kms_tls_options = tls_opts )
183
- opts . _parse_kms_tls_options (_IS_SYNC )
183
+ _parse_kms_tls_options (opts . _kms_tls_options , _IS_SYNC )
184
184
with self .assertRaises (FileNotFoundError ):
185
185
opts = AutoEncryptionOpts (
186
186
{}, "k.d" , kms_tls_options = {"kmip" : {"tlsCAFile" : "does-not-exist" }}
187
187
)
188
- opts . _parse_kms_tls_options (_IS_SYNC )
188
+ _parse_kms_tls_options (opts . _kms_tls_options , _IS_SYNC )
189
189
# Success cases:
190
190
tls_opts : Any
191
191
for tls_opts in [None , {}]:
0 commit comments