1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

Implement TestCase.assertIn for older versions of Python.

Change-Id: I17d855166b439c0bd9344a17a454ea5bc6e057aa
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Jelmer Vernooij 2015-02-05 19:57:26 +01:00 committed by Andrew Bartlett
parent d459096e7c
commit a6b2110abd

View File

@ -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)