From: Joseph Sutton Date: Tue, 23 May 2023 04:43:10 +0000 (+1200) Subject: tests/auth_log: Correctly check for GUID X-Git-Tag: talloc-2.4.1~552 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1c17d56cc53cc5b4eaeff87ccbea68fb07b7caf1;p=thirdparty%2Fsamba.git tests/auth_log: Correctly check for GUID Pattern.match() only checks the starting portion of the string. Signed-off-by: Joseph Sutton Reviewed-by: Andrew Bartlett --- diff --git a/python/samba/tests/auth_log_base.py b/python/samba/tests/auth_log_base.py index bc903168775..4a4aa81db8a 100644 --- a/python/samba/tests/auth_log_base.py +++ b/python/samba/tests/auth_log_base.py @@ -154,4 +154,4 @@ class AuthLogTestBase(samba.tests.TestCase): # Is the supplied GUID string correctly formatted # def is_guid(self, guid): - return self.GUID_RE.match(guid) + return self.GUID_RE.fullmatch(guid)