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 2121
2222sys .path [0 :0 ] = ["" ]
2323
24- from test import client_context , unittest
24+ from test import IntegrationTest , client_context , unittest
2525from test .utils import wait_until
2626
2727from pymongo .common import validate_read_preference_tags
@@ -186,5 +186,13 @@ def test_invalid_host(self):
186186 )
187187
188188
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+
189197if __name__ == "__main__" :
190198 unittest .main ()
You can’t perform that action at this time.
0 commit comments