git.samba.org
/
bbaumbach
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d459096
)
Implement TestCase.assertIn for older versions of Python.
author
Jelmer Vernooij
<jelmer@samba.org>
Thu, 5 Feb 2015 18:57:26 +0000
(19:57 +0100)
committer
Andrew Bartlett
<abartlet@samba.org>
Fri, 6 Mar 2015 03:41:49 +0000
(
04:41
+0100)
Change-Id: I17d855166b439c0bd9344a17a454ea5bc6e057aa
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
python/samba/tests/__init__.py
patch
|
blob
|
history
diff --git
a/python/samba/tests/__init__.py
b/python/samba/tests/__init__.py
index 413ac69833c556dae3675b7efbe1e33ebad26f69..840e5c36285b8300dccfe7772b0511104b48a28e 100644
(file)
--- a/
python/samba/tests/__init__.py
+++ b/
python/samba/tests/__init__.py
@@
-61,6
+61,9
@@
class TestCase(unittest.TestCase):
def skipTest(self, reason):
raise SkipTest(reason)
+ def assertIn(self, member, container, msg=None):
+ self.assertTrue(member in container, msg)
+
def assertIs(self, a, b):
self.assertTrue(a is b)