@@ -97,6 +97,7 @@ def test_split_options(self):
97
97
self .assertRaises (ConfigurationError , split_options , 'foo' )
98
98
self .assertRaises (ConfigurationError , split_options , 'foo=bar;foo' )
99
99
self .assertTrue (split_options ('ssl=true' ))
100
+ self .assertTrue (split_options ('connect=true' ))
100
101
self .assertTrue (split_options ('ssl_match_hostname=true' ))
101
102
102
103
# Test Invalid URI options that should throw warnings.
@@ -118,6 +119,8 @@ def test_split_options(self):
118
119
'connectTimeoutMS=-1e100000' , warn = True )
119
120
self .assertRaises (Warning , split_options ,
120
121
'ssl=foo' , warn = True )
122
+ self .assertRaises (Warning , split_options ,
123
+ 'connect=foo' , warn = True )
121
124
self .assertRaises (Warning , split_options ,
122
125
'ssl_match_hostname=foo' , warn = True )
123
126
@@ -153,6 +156,7 @@ def test_split_options(self):
153
156
self .assertRaises (ValueError , split_options ,
154
157
'connectTimeoutMS=-1e100000' )
155
158
self .assertRaises (ValueError , split_options , 'ssl=foo' )
159
+ self .assertRaises (ValueError , split_options , 'connect=foo' )
156
160
self .assertRaises (ValueError , split_options , 'ssl_match_hostname=foo' )
157
161
if not (sys .platform == "win32" and sys .version_info <= (2 , 5 )):
158
162
self .assertRaises (ValueError , split_options ,
0 commit comments