diff options
author | Pierre-Yves David <pierre-yves.david@logilab.fr> | 2008-06-19 15:19:52 +0200 |
---|---|---|
committer | Pierre-Yves David <pierre-yves.david@logilab.fr> | 2008-06-19 15:19:52 +0200 |
commit | 7762c3247509b8ee97d5695c23dce6759b4edbbe (patch) | |
tree | 164b1f1c5b6c2400c6baae7f5a9b1e8a44fdcba6 | |
parent | 2d5d7c02ad828aa1ac6353d6386ac8c5c1f10886 (diff) | |
download | logilab-common-7762c3247509b8ee97d5695c23dce6759b4edbbe.tar.gz |
revert docstring modification
-rw-r--r-- | testlib.py | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1134,7 +1134,7 @@ class TestCase(unittest.TestCase): assertDictEqual = assertDictEquals def assertSetEquals(self, got, expected, msg=None): - """compares two set and shows difference between both""" + """compares two iterable and shows difference between both""" got, expected = list(got), list(expected) if msg is None: msg1 = '%s != %s' % (got, expected) @@ -1307,13 +1307,13 @@ class TestCase(unittest.TestCase): def assertNone(self, obj, msg=None): """assert obj is None""" if msg is None: - msg = "param is not None" + msg = "reference to %r when None expected"%(obj,) self.assert_( obj is None, msg ) def assertNotNone(self, obj, msg=None): """assert obj is not None""" if msg is None: - msg = "param is None" + msg = "unexpected reference to None" self.assert_( obj is not None, msg ) def failUnlessRaises(self, excClass, callableObj, *args, **kwargs): |