We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e18bab3 commit aaaf99bCopy full SHA for aaaf99b
bpython/test/test_inspection.py
@@ -42,6 +42,10 @@ class Noncallable(object):
42
def spam():
43
pass
44
45
+ class CallableMethod(object):
46
+ def method(self):
47
+ pass
48
+
49
self.assertTrue(inspection.is_callable(spam))
50
self.assertTrue(inspection.is_callable(Callable))
51
self.assertTrue(inspection.is_callable(Callable()))
@@ -50,6 +54,7 @@ def spam():
54
self.assertFalse(inspection.is_callable(Noncallable()))
55
self.assertFalse(inspection.is_callable(OldNoncallable()))
52
56
self.assertFalse(inspection.is_callable(None))
57
+ self.assertTrue(inspection.is_callable(CallableMethod().method))
53
58
59
def test_parsekeywordpairs(self):
60
# See issue #109
0 commit comments