1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-26 10:04:02 +03:00

tests/auth_log: Correctly check for GUID

Pattern.match() only checks the starting portion of the string.

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Joseph Sutton 2023-05-23 16:43:10 +12:00 committed by Andrew Bartlett
parent ffda69f2d9
commit 1c17d56cc5

View File

@ -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)