Package zope :: Package interface :: Module verify
[show private | hide private]
[frames | no frames]

Module zope.interface.verify

Verify interface implementations

$Id: verify.py,v 1.2 2005/06/24 16:52:41 nyergler Exp $
Function Summary
  _incompat(required, implemented)
  _verify(iface, candidate, tentative, vtype)
Verify that 'candidate' might correctly implements 'iface'.
  verifyClass(iface, candidate, tentative)
  verifyObject(iface, candidate, tentative)

Variable Summary
tuple MethodTypes = (<type 'instancemethod'>,)

Function Details

_verify(iface, candidate, tentative=0, vtype=None)

Verify that 'candidate' might correctly implements 'iface'.

This involves:

  o Making sure the candidate defines all the necessary methods

  o Making sure the methods have the correct signature

  o Making sure the candidate asserts that it implements the interface

Note that this isn't the same as verifying that the class does
implement the interface.

If optional tentative is true, suppress the "is implemented by" test.

Variable Details

MethodTypes

Type:
tuple
Value:
(<type 'instancemethod'>,)                                             

Generated by Epydoc 2.1 on Fri Jun 24 12:01:25 2005 http://epydoc.sf.net