From: Stefan Metzmacher Date: Mon, 26 Nov 2018 10:49:22 +0000 (+0100) Subject: py:dcerpc/raw_testcase: add assertEqualsStrLower() X-Git-Tag: talloc-2.1.15~41 X-Git-Url: http://git.samba.org/samba.git/?a=commitdiff_plain;h=3f535ed1adfe9c7088852a2c6aa56988440ce8fa;p=kai%2Fsamba-autobuild%2F.git py:dcerpc/raw_testcase: add assertEqualsStrLower() BUG: https://bugzilla.samba.org/show_bug.cgi?id=7113 BUG: https://bugzilla.samba.org/show_bug.cgi?id=11892 Signed-off-by: Stefan Metzmacher Reviewed-by: Jeremy Allison --- diff --git a/python/samba/tests/dcerpc/raw_testcase.py b/python/samba/tests/dcerpc/raw_testcase.py index 555ea8d607d..1a174363214 100644 --- a/python/samba/tests/dcerpc/raw_testcase.py +++ b/python/samba/tests/dcerpc/raw_testcase.py @@ -1158,3 +1158,6 @@ class RawDCERPCTest(TestCase): return zero_pad = b'\0' * length self.assertEquals(pad, zero_pad) + + def assertEqualsStrLower(self, s1, s2): + self.assertEquals(str(s1).lower(), str(s2).lower())