summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2018-11-26 11:49:22 +0100
committerJeremy Allison <jra@samba.org>2019-01-12 03:13:41 +0100
commit3f535ed1adfe9c7088852a2c6aa56988440ce8fa (patch)
tree3a1044cedc3a00efa1f66e315deb1c775f76291b /python
parent1d7930c8ad2ac5b7f5139b471ebc0b96c8d8b773 (diff)
downloadsamba-3f535ed1adfe9c7088852a2c6aa56988440ce8fa.tar.gz
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 <metze@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'python')
-rw-r--r--python/samba/tests/dcerpc/raw_testcase.py3
1 files changed, 3 insertions, 0 deletions
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())