Skip to content

Commit a36d41d

Browse files
committed
test (legacy code-path) related
1 parent 6569e55 commit a36d41d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

irods/test/connection_test.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import logging
55
import numbers
66
import os
7+
import re
78
import sys
89
import tempfile
910
import unittest
@@ -248,7 +249,8 @@ def test_legacy_auth_codepath__issue_499(self):
248249
with helpers.enableLogging( logger, logging.StreamHandler, (stream,), level_=logging.INFO):
249250
with temp_setter(logger,"propagate",False):
250251
helpers.make_session().collections.get('/')
251-
self.assertRegex(stream.getvalue(),"legacy auth")
252+
regex = re.compile('^.*Native auth.*(in legacy auth).*$',re.MULTILINE)
253+
self.assertTrue(regex.search(stream.getvalue()))
252254

253255
if __name__ == "__main__":
254256
# let the tests find the parent irods lib

0 commit comments

Comments
 (0)