From 3f535ed1adfe9c7088852a2c6aa56988440ce8fa Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Mon, 26 Nov 2018 11:49:22 +0100 Subject: 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 --- python/samba/tests/dcerpc/raw_testcase.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'python') 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()) -- cgit v1.2.1