4 paula.properties Package Readme
5 ===============================
7 XXX: eventually we just test this inside of paula.suite or wherever we do
8 the overall testing, it is way to bothersome to do it here...
12 >>> from zope.app.authentication
16 test whether properties end up on principals created by a PAU
21 two principals with the same name
23 two provider on one level for the same principal
25 another provider for another principal
34 A mockup property provider
36 >>> class IA(Interface):
37 ... a1 = Attribute(u"a1")
38 ... a2 = Attribute(u"a2")
39 >>> alsoProvides(IA, IPropertyInterface)
41 >>> class IB(Interface):
42 ... b = Attribute(u"b")
43 >>> alsoProvides(IB, IPropertyInterface)
45 >>> class IC(Interface):
46 ... c = Attribute(u"c")
53 ... alsoProvides=(IA,IB),
58 >>> class ID(Interface):
59 ... d = Attribute(u"d")
60 >>> alsoProvides(ID, IPropertyInterface)
62 >>> pp2 = Mock(d=4, alsoProvides=(ID,))
64 A mockup property provider utility
67 >>> ppu = UserDict.UserDict()
68 >>> ppu["1"] = [pp1, pp2]
70 Call and check which attributes made it
72 >>> _copy_attributes_from_ppu(p, ppu)
87 >>> getattr(p, 'c', 'foo')