diff options
author | Pierre-Yves David <pierre-yves.david@logilab.fr> | 2008-08-29 14:12:25 +0200 |
---|---|---|
committer | Pierre-Yves David <pierre-yves.david@logilab.fr> | 2008-08-29 14:12:25 +0200 |
commit | 373fac46dd48c21ba43d4968b69a4ae13807f1d4 (patch) | |
tree | 12742ec76713116a22d19e1f3dc41cc078364229 /test | |
parent | 3722cd9c3e5bea0daee2b0ab8ae72c62d33cd561 (diff) | |
download | logilab-common-373fac46dd48c21ba43d4968b69a4ae13807f1d4.tar.gz |
add assertIn method
Diffstat (limited to 'test')
-rw-r--r-- | test/unittest_testlib.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/unittest_testlib.py b/test/unittest_testlib.py index 03050ea..2221e62 100644 --- a/test/unittest_testlib.py +++ b/test/unittest_testlib.py @@ -270,6 +270,12 @@ class TestlibTC(TestCase): self.assertNotNone(object()) self.assertRaises(AssertionError, self.assertNotNone, None) + def test_in(self): + self.assertIn("a", "dsqgaqg") + obj, seq = 'a', ('toto', "azf", "coin") + self.assertRaises(AssertionError, self.assertIn, obj, seq) + + class GenerativeTestsTC(TestCase): def setUp(self): |