File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 21
21
22
22
sys .path [0 :0 ] = ["" ]
23
23
24
- from test import client_context , unittest
24
+ from test import IntegrationTest , client_context , unittest
25
25
from test .utils import wait_until
26
26
27
27
from pymongo .common import validate_read_preference_tags
@@ -186,5 +186,13 @@ def test_invalid_host(self):
186
186
)
187
187
188
188
189
+ class TestCaseInsensitive (IntegrationTest ):
190
+ @unittest .skipUnless (_HAVE_DNSPYTHON , "DNS tests require the dnspython module" )
191
+ def test_connect_case_insensitive (self ):
192
+ client = MongoClient ("mongodb+srv://TEST1.TEST.BUILD.10GEN.cc/" )
193
+ self .addCleanup (client .close )
194
+ self .assertGreater (len (client .topology_description .server_descriptions ()), 1 )
195
+
196
+
189
197
if __name__ == "__main__" :
190
198
unittest .main ()
You can’t perform that action at this time.
0 commit comments