diff options
Diffstat (limited to 'docs/verify.rst')
| -rw-r--r-- | docs/verify.rst | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/docs/verify.rst b/docs/verify.rst index f400f23..364aedb 100644 --- a/docs/verify.rst +++ b/docs/verify.rst @@ -151,6 +151,14 @@ different type of exception, so we need an updated helper. ... except BrokenMethodImplementation as e: ... print(e) +Not being callable is an error. + +.. doctest:: + + >>> Foo.simple = 42 + >>> verify_foo() + The object <Foo...> violates its contract in IFoo.simple(arg1): implementation is not a method. + Taking too few arguments is an error. .. doctest:: |
