summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorSylvain Th?nault <sylvain.thenault@logilab.fr>2012-10-23 09:34:30 +0200
committerSylvain Th?nault <sylvain.thenault@logilab.fr>2012-10-23 09:34:30 +0200
commit6b786f3fee5da562e94b9dc14ba08564e8b9bcc9 (patch)
tree44ed4c205d961c08481aaba1cad2cb1bbe4d74d9 /test
parent5fc72182e1a79d1cf65affdaf1b7b052e4cffd4b (diff)
downloadlogilab-common-6b786f3fee5da562e94b9dc14ba08564e8b9bcc9.tar.gz
[decorators test] use assertIsInstance as expected
Diffstat (limited to 'test')
-rw-r--r--test/unittest_decorators.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/unittest_decorators.py b/test/unittest_decorators.py
index 40eddc2..72d8b07 100644
--- a/test/unittest_decorators.py
+++ b/test/unittest_decorators.py
@@ -46,14 +46,14 @@ class DecoratorsTC(TestCase):
return 12
class XXX(object):
def __call__(self, other):
- tester.assertTrue(isinstance(other, MyClass))
+ tester.assertIsInstance(other, MyClass)
return 12
try:
monkeypatch(MyClass)(XXX())
except AttributeError, err:
self.assertTrue(str(err).endswith('has no __name__ attribute: you should provide an explicit `methodname`'))
monkeypatch(MyClass, 'foo')(XXX())
- self.assertTrue(isinstance(MyClass.prop1, property))
+ self.assertIsInstance(MyClass.prop1, property)
self.assertTrue(callable(MyClass.foo))
self.assertEqual(MyClass().prop1, 12)
self.assertEqual(MyClass().foo(), 12)