py:dcerpc/raw_testcase: add assertEqualsStrLower()
authorStefan Metzmacher <metze@samba.org>
Mon, 26 Nov 2018 10:49:22 +0000 (11:49 +0100)
committerJeremy Allison <jra@samba.org>
Sat, 12 Jan 2019 02:13:41 +0000 (03:13 +0100)
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 <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
python/samba/tests/dcerpc/raw_testcase.py

index 555ea8d..1a17436 100644 (file)
@@ -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())