Module Expr Str Import alias Import alias Import alias ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body ImportFrom alias ImportFrom alias ClassDef bases NameLoad body Assign NameStore Call NameLoad Str FunctionDef arguments args defaults body Pass decorator_list FunctionDef arguments args defaults body Pass decorator_list Assign AttributeStore NameLoad attr Num decorator_list ClassDef bases NameLoad body Pass decorator_list ClassDef bases NameLoad body Pass decorator_list ClassDef bases NameLoad body FunctionDef arguments args defaults body Pass decorator_list FunctionDef arguments args defaults body Pass decorator_list Assign NameStore NameLoad decorator_list Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body ImportFrom alias Expr Call AttributeLoad NameLoad attr AttributeLoad SubscriptLoad NameLoad Index Str attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad SubscriptLoad NameLoad Index Str attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr UnaryOpNot Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr UnaryOpNot Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr UnaryOpNot Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr UnaryOpNot Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias Expr Call AttributeLoad NameLoad attr CompareIn NameLoad Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr CompareIn NameLoad Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr UnaryOpNot CompareIn NameLoad Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr CompareIn NameLoad Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr UnaryOpNot CompareIn NameLoad Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr CompareIn NameLoad Call NameLoad Call NameLoad Expr Call AttributeLoad NameLoad attr CompareIn NameLoad Call NameLoad Call NameLoad Expr Call AttributeLoad NameLoad attr UnaryOpNot CompareIn NameLoad Call NameLoad Call NameLoad Expr Call AttributeLoad NameLoad attr CompareIn NameLoad Call NameLoad Call NameLoad Expr Call AttributeLoad NameLoad attr UnaryOpNot CompareIn NameLoad Call NameLoad Call NameLoad decorator_list FunctionDef arguments args NameParam defaults body ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call NameLoad Expr Call AttributeLoad NameLoad attr UnaryOpNot Call AttributeLoad NameLoad attr Call NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call NameLoad Expr Call AttributeLoad NameLoad attr UnaryOpNot Call AttributeLoad NameLoad attr Call NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call NameLoad Expr Call AttributeLoad NameLoad attr UnaryOpNot Call AttributeLoad NameLoad attr Call NameLoad Expr Call AttributeLoad NameLoad attr UnaryOpNot Call AttributeLoad NameLoad attr Call NameLoad decorator_list FunctionDef arguments args NameParam defaults body ImportFrom alias ImportFrom alias Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr UnaryOpNot Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr UnaryOpNot Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr UnaryOpNot Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad ListLoad Str Str Str Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad ListLoad Str Str Str Str Str Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore ListComp SubscriptLoad NameLoad Index Num comprehension NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad ListLoad Str Str Str Assign NameStore ListComp SubscriptLoad NameLoad Index Num comprehension NameStore Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad ListLoad Str Str Str Str Str Str For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Num body Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad Call AttributeLoad NameLoad attr Str attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad Call AttributeLoad NameLoad attr Str attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad SubscriptLoad NameLoad Index Str attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad SubscriptLoad NameLoad Index Str attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr CompareIn Str NameLoad Expr Call AttributeLoad NameLoad attr CompareIn Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad ListLoad Str Str Str Str Str Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body ImportFrom alias ClassDef bases NameLoad body FunctionDef arguments args defaults body Pass decorator_list Assign AttributeStore NameLoad attr Num decorator_list Assign NameStore SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Num decorator_list FunctionDef arguments args NameParam defaults body ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias Assign NameStore Call NameLoad Expr Call NameLoad NameLoad NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad body If CompareIs NameLoad NameLoad body Assign NameStore NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr NameLoad Assign NameStore ListLoad TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num NameLoad orelse Expr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad Assign NameStore ListComp SubscriptLoad AttributeLoad NameLoad attr Index Num comprehension NameStore NameLoad Expr Call AttributeLoad NameLoad attr For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr Num decorator_list Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str ListLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign AttributeStore NameLoad attr Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign AttributeStore NameLoad attr Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad Delete AttributeDel NameLoad attr Expr Call NameLoad NameLoad NameLoad Num ListLoad Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str ListLoad NameLoad Assign NameStore Call NameLoad Expr Call NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr Num Expr Call NameLoad NameLoad NameLoad Num ListLoad Str NameLoad Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Num Expr Call NameLoad NameLoad NameLoad Num ListLoad Str NameLoad Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Num Expr Call NameLoad NameLoad NameLoad Num ListLoad Str Str NameLoad Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call NameLoad Expr Call NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore SubscriptLoad NameLoad Slice Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call NameLoad NameLoad NameLoad Num ListLoad Str Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Num Expr Call NameLoad NameLoad NameLoad Num ListLoad Str Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Num Expr Call NameLoad NameLoad NameLoad Num ListLoad Str Str Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body ImportFrom alias ImportFrom alias ClassDef bases NameLoad body Expr Str decorator_list Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad ListLoad ClassDef bases NameLoad body Expr Str Assign NameStore Call NameLoad Str decorator_list Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad ListLoad Str decorator_list FunctionDef arguments args NameParam defaults body ImportFrom alias If CompareEq SubscriptLoad AttributeLoad NameLoad attr Index Num Str body Return ClassDef bases NameLoad body Expr Str decorator_list ClassDef bases body Assign NameStore NameLoad decorator_list Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr NameLoad decorator_list decorator_list If CompareGtE AttributeLoad NameLoad attr TupleLoad Num Num body FunctionDef arguments args defaults body Expr Str decorator_list FunctionDef arguments args defaults body Expr Str decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str If CompareGtE AttributeLoad NameLoad attr TupleLoad Num Num body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str keyword Dict Str Str keyword BinOpBitOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str keyword Dict Str Str keyword BinOpBitOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return NameLoad decorator_list
N/A N/A Test Interface implementation
 N/A doctest N/A unittest N/A sys InterfaceTests N/A N/A unittest TestCase N/A _makeDerivedInterface N/A N/A self N/A N/A zope.interface Interface zope.interface Attribute _I1 N/A Interface N/A N/A a1 N/A Attribute This is an attribute f11 N/A N/A N/A N/A N/A N/A f12 N/A N/A N/A N/A N/A N/A N/A N/A f12 optional 1 N/A _I1_ N/A _I1 N/A N/A N/A _I1__ N/A _I1_ N/A N/A N/A _I2 N/A _I1__ N/A f21 N/A N/A N/A N/A N/A N/A f22 N/A N/A N/A N/A N/A N/A N/A f23 f22 N/A N/A _I2 N/A testInterfaceSetOnAttributes N/A N/A self N/A N/A zope.interface.tests.unitfixtures FooInterface N/A N/A N/A self assertEqual N/A N/A FooInterface N/A foobar interface FooInterface N/A N/A N/A self assertEqual N/A N/A FooInterface N/A aMethod interface FooInterface N/A testClassImplements N/A N/A self N/A N/A zope.interface.tests.unitfixtures A zope.interface.tests.unitfixtures B zope.interface.tests.unitfixtures C zope.interface.tests.unitfixtures D zope.interface.tests.unitfixtures E zope.interface.tests.unitfixtures I1 zope.interface.tests.unitfixtures I2 zope.interface.tests.unitfixtures IC N/A N/A N/A self assert_ N/A N/A IC implementedBy C N/A N/A N/A self assert_ N/A N/A I1 implementedBy A N/A N/A N/A self assert_ N/A N/A I1 implementedBy B N/A N/A N/A self assert_ N/A N/A N/A I1 implementedBy C N/A N/A N/A self assert_ N/A N/A I1 implementedBy D N/A N/A N/A self assert_ N/A N/A I1 implementedBy E N/A N/A N/A self assert_ N/A N/A N/A I2 implementedBy A N/A N/A N/A self assert_ N/A N/A I2 implementedBy B N/A N/A N/A self assert_ N/A N/A N/A I2 implementedBy C N/A N/A N/A self assert_ N/A N/A N/A I2 implementedBy E N/A testUtil N/A N/A self N/A N/A zope.interface implementedBy zope.interface providedBy zope.interface.tests.unitfixtures A zope.interface.tests.unitfixtures B zope.interface.tests.unitfixtures C zope.interface.tests.unitfixtures I1 zope.interface.tests.unitfixtures I2 zope.interface.tests.unitfixtures IC N/A N/A N/A self assert_ N/A IC N/A implementedBy C N/A N/A N/A self assert_ N/A I1 N/A implementedBy A N/A N/A N/A self assert_ N/A N/A I1 N/A implementedBy C N/A N/A N/A self assert_ N/A I2 N/A implementedBy B N/A N/A N/A self assert_ N/A N/A I2 N/A implementedBy C N/A N/A N/A self assert_ N/A IC N/A providedBy N/A C N/A N/A N/A self assert_ N/A I1 N/A providedBy N/A A N/A N/A N/A self assert_ N/A N/A I1 N/A providedBy N/A C N/A N/A N/A self assert_ N/A I2 N/A providedBy N/A B N/A N/A N/A self assert_ N/A N/A I2 N/A providedBy N/A C N/A testObjectImplements N/A N/A self N/A N/A zope.interface.tests.unitfixtures A zope.interface.tests.unitfixtures B zope.interface.tests.unitfixtures C zope.interface.tests.unitfixtures D zope.interface.tests.unitfixtures E zope.interface.tests.unitfixtures I1 zope.interface.tests.unitfixtures I2 zope.interface.tests.unitfixtures IC N/A N/A N/A self assert_ N/A N/A IC providedBy N/A C N/A N/A N/A self assert_ N/A N/A I1 providedBy N/A A N/A N/A N/A self assert_ N/A N/A I1 providedBy N/A B N/A N/A N/A self assert_ N/A N/A N/A I1 providedBy N/A C N/A N/A N/A self assert_ N/A N/A I1 providedBy N/A D N/A N/A N/A self assert_ N/A N/A I1 providedBy N/A E N/A N/A N/A self assert_ N/A N/A N/A I2 providedBy N/A A N/A N/A N/A self assert_ N/A N/A I2 providedBy N/A B N/A N/A N/A self assert_ N/A N/A N/A I2 providedBy N/A C N/A N/A N/A self assert_ N/A N/A N/A I2 providedBy N/A E N/A testDeferredClass N/A N/A self N/A N/A zope.interface.tests.unitfixtures A zope.interface.exceptions BrokenImplementation N/A a N/A A N/A N/A N/A self assertRaises BrokenImplementation N/A a ma N/A testInterfaceExtendsInterface N/A N/A self N/A N/A zope.interface.tests.unitfixtures BazInterface zope.interface.tests.unitfixtures BarInterface zope.interface.tests.unitfixtures BobInterface zope.interface.tests.unitfixtures FunInterface N/A N/A N/A self assert_ N/A N/A BazInterface extends BobInterface N/A N/A N/A self assert_ N/A N/A BazInterface extends BarInterface N/A N/A N/A self assert_ N/A N/A BazInterface extends FunInterface N/A N/A N/A self assert_ N/A N/A N/A BobInterface extends FunInterface N/A N/A N/A self assert_ N/A N/A N/A BobInterface extends BarInterface N/A N/A N/A self assert_ N/A N/A BarInterface extends FunInterface N/A N/A N/A self assert_ N/A N/A N/A BarInterface extends BazInterface N/A testVerifyImplementation N/A N/A self N/A N/A zope.interface.verify verifyClass zope.interface Interface zope.interface.tests.unitfixtures Foo zope.interface.tests.unitfixtures FooInterface zope.interface.tests.unitfixtures I1 N/A N/A N/A self assert_ N/A verifyClass FooInterface Foo N/A N/A N/A self assert_ N/A N/A Interface providedBy I1 N/A test_names N/A N/A self N/A N/A N/A iface N/A N/A self _makeDerivedInterface N/A names N/A list N/A N/A iface names N/A N/A N/A names sort N/A N/A N/A self assertEqual names N/A f21 f22 f23 N/A all N/A list N/A N/A iface names all True N/A N/A N/A all sort N/A N/A N/A self assertEqual all N/A a1 f11 f12 f21 f22 f23 N/A test_namesAndDescriptions N/A N/A self N/A N/A N/A iface N/A N/A self _makeDerivedInterface N/A names N/A N/A nd N/A 0 N/A nd N/A N/A iface namesAndDescriptions N/A N/A N/A names sort N/A N/A N/A self assertEqual names N/A f21 f22 f23 N/A names N/A N/A nd N/A 0 N/A nd N/A N/A iface namesAndDescriptions 1 N/A N/A N/A names sort N/A N/A N/A self assertEqual names N/A a1 f11 f12 f21 f22 f23 N/A N/A name d N/A N/A iface namesAndDescriptions 1 N/A N/A N/A N/A self assertEqual name N/A d __name__ N/A test_getDescriptionFor N/A N/A self N/A N/A N/A iface N/A N/A self _makeDerivedInterface N/A N/A N/A self assertEqual N/A N/A N/A iface getDescriptionFor f11 __name__ f11 N/A N/A N/A self assertEqual N/A N/A N/A iface getDescriptionFor f22 __name__ f22 N/A N/A N/A self assertEqual N/A N/A iface queryDescriptionFor f33 self self N/A N/A N/A self assertRaises KeyError N/A iface getDescriptionFor f33 N/A test___getitem__ N/A N/A self N/A N/A N/A iface N/A N/A self _makeDerivedInterface N/A N/A N/A self assertEqual N/A N/A iface N/A f11 __name__ f11 N/A N/A N/A self assertEqual N/A N/A iface N/A f22 __name__ f22 N/A N/A N/A self assertEqual N/A N/A iface get f33 self self N/A N/A N/A self assertRaises KeyError N/A iface __getitem__ f33 N/A test___contains__ N/A N/A self N/A N/A N/A iface N/A N/A self _makeDerivedInterface N/A N/A N/A self failUnless N/A f11 iface N/A N/A N/A self failIf N/A f33 iface N/A test___iter__ N/A N/A self N/A N/A N/A iface N/A N/A self _makeDerivedInterface N/A names N/A list N/A iter iface N/A N/A N/A names sort N/A N/A N/A self assertEqual names N/A a1 f11 f12 f21 f22 f23 N/A testAttr N/A N/A self N/A N/A N/A iface N/A N/A self _makeDerivedInterface N/A description N/A N/A iface getDescriptionFor a1 N/A N/A N/A self assertEqual N/A description __name__ a1 N/A N/A N/A self assertEqual N/A description __doc__ This is an attribute N/A testFunctionAttributes N/A N/A self N/A N/A zope.interface Interface ITest N/A Interface N/A method N/A N/A N/A N/A N/A N/A N/A N/A method optional 1 N/A N/A method N/A ITest N/A method N/A N/A N/A self assertEqual N/A N/A method getTaggedValue optional 1 N/A testInvariant N/A N/A self N/A N/A zope.interface.exceptions Invalid zope.interface directlyProvides zope.interface.tests.unitfixtures BarGreaterThanFoo zope.interface.tests.unitfixtures ifFooThenBar zope.interface.tests.unitfixtures IInvariant zope.interface.tests.unitfixtures InvariantC zope.interface.tests.unitfixtures ISubInvariant N/A o N/A InvariantC N/A N/A directlyProvides o IInvariant errorsEqual N/A N/A self o error_len error_msgs iface N/A None N/A N/A N/A iface None N/A N/A iface IInvariant N/A N/A N/A self assertRaises Invalid N/A iface validateInvariants o N/A e N/A N/A N/A N/A N/A N/A iface validateInvariants o e N/A N/A N/A Invalid N/A error N/A N/A N/A N/A self assertEquals N/A N/A error args N/A 0 e N/A N/A N/A N/A self _assert 0 N/A N/A N/A self assertEquals N/A len e error_len N/A msgs N/A N/A N/A error args N/A 0 N/A error e N/A N/A N/A msgs sort N/A msg msgs N/A N/A N/A N/A self assertEquals msg N/A N/A error_msgs pop 0 N/A N/A N/A N/A self assertEquals N/A N/A IInvariant getTaggedValue invariants N/A ifFooThenBar N/A N/A N/A self assertEquals N/A N/A IInvariant validateInvariants o None N/A N/A o bar 27 N/A N/A N/A self assertEquals N/A N/A IInvariant validateInvariants o None N/A N/A o foo 42 N/A N/A N/A self assertEquals N/A N/A IInvariant validateInvariants o None N/A N/A o bar N/A N/A errorsEqual self o 1 N/A If Foo, then Bar! N/A N/A N/A self assertEquals N/A N/A ISubInvariant getTaggedValue invariants N/A BarGreaterThanFoo N/A o N/A InvariantC N/A N/A directlyProvides o ISubInvariant N/A N/A o foo 42 N/A N/A errorsEqual self o 1 N/A If Foo, then Bar! ISubInvariant N/A N/A o foo 2 N/A N/A o bar 1 N/A N/A errorsEqual self o 1 N/A Please, Boo MUST be greater than Foo! ISubInvariant N/A N/A o foo 1 N/A N/A o bar 0 N/A N/A errorsEqual self o 2 N/A If Foo, then Bar! Please, Boo MUST be greater than Foo! ISubInvariant N/A N/A o foo 1 N/A N/A o bar 2 N/A N/A N/A self assertEquals N/A N/A IInvariant validateInvariants o None N/A o N/A InvariantC N/A N/A directlyProvides o IInvariant N/A N/A o foo 42 N/A old_invariants N/A N/A IInvariant getTaggedValue invariants N/A invariants N/A old_invariants N/A N/A N/A N/A invariants append BarGreaterThanFoo N/A N/A N/A IInvariant setTaggedValue invariants invariants N/A N/A errorsEqual self o 1 N/A If Foo, then Bar! N/A N/A o foo 2 N/A N/A o bar 1 N/A N/A errorsEqual self o 1 N/A Please, Boo MUST be greater than Foo! N/A N/A o foo 1 N/A N/A o bar 0 N/A N/A errorsEqual self o 2 N/A If Foo, then Bar! Please, Boo MUST be greater than Foo! N/A N/A o foo 1 N/A N/A o bar 2 N/A N/A N/A self assertEquals N/A N/A IInvariant validateInvariants o None N/A N/A N/A IInvariant setTaggedValue invariants old_invariants N/A test___doc___element N/A N/A self N/A N/A zope.interface Interface zope.interface Attribute I N/A Interface N/A N/A xxx N/A N/A N/A N/A self assertEqual N/A I __doc__ xxx N/A N/A N/A self assertEqual N/A list I N/A I N/A Interface N/A N/A xxx N/A __doc__ N/A Attribute the doc N/A N/A N/A N/A self assertEqual N/A I __doc__ N/A N/A N/A self assertEqual N/A list I N/A __doc__ N/A testIssue228 N/A N/A self N/A N/A zope.interface Interface N/A N/A N/A N/A sys version N/A 0 3 N/A N/A I N/A Interface N/A N/A xxx N/A Bad N/A N/A N/A __providedBy__ None N/A N/A N/A N/A self failUnlessRaises AttributeError N/A I providedBy Bad N/A N/A N/A N/A N/A sys version_info N/A 2 4 N/A test_invariant_as_decorator N/A N/A N/A N/A N/A Invaiants can be deined in line

          >>> from zope.interface.exceptions import Invalid
          >>> from zope.interface import Interface
          >>> from zope.interface import Attribute
          >>> from zope.interface import implements
          >>> from zope.interface import invariant
          >>> class IRange(Interface):
          ...     min = Attribute("Lower bound")
          ...     max = Attribute("Upper bound")
          ...
          ...     @invariant
          ...     def range_invariant(ob):
          ...         if ob.max < ob.min:
          ...             raise Invalid('max < min')


          >>> class Range(object):
          ...     implements(IRange)
          ...
          ...     def __init__(self, min, max):
          ...         self.min, self.max = min, max

          >>> from zope.interface.exceptions import Invalid
          >>> IRange.validateInvariants(Range(1,2))
          >>> IRange.validateInvariants(Range(1,1))
          >>> try:
          ...     IRange.validateInvariants(Range(2,1))
          ... except Invalid, e:
          ...     str(e)
          'max < min'


         N/A test_description_cache_management N/A N/A N/A N/A N/A  See https://bugs.launchpad.net/zope.interface/+bug/185974

There was a bug where the cache used by Specification.get() was not
cleared when the bases were changed.

    >>> from zope.interface import Interface
    >>> from zope.interface import Attribute
    >>> class I1(Interface):
    ...     a = Attribute('a')

    >>> class I2(I1):
    ...     pass

    >>> class I3(I2):
    ...     pass

    >>> I3.get('a') is I1.get('a')
    True
    >>> I2.__bases__ = (Interface,)
    >>> I3.get('a') is None
    True
     N/A test_suite N/A N/A N/A N/A N/A suite N/A N/A unittest makeSuite InterfaceTests N/A N/A N/A suite addTest N/A N/A doctest DocTestSuite zope.interface.interface N/A N/A N/A sys version_info N/A 2 4 N/A N/A N/A N/A suite addTest N/A N/A doctest DocTestSuite N/A N/A N/A suite addTest N/A N/A doctest DocFileSuite ../README.txt globs N/A __name__ __main__ optionflags N/A N/A doctest NORMALIZE_WHITESPACE N/A doctest ELLIPSIS N/A N/A N/A suite addTest N/A N/A doctest DocFileSuite ../README.ru.txt globs N/A __name__ __main__ optionflags N/A N/A doctest NORMALIZE_WHITESPACE N/A doctest ELLIPSIS N/A suite N/A