Back to index

plone3  3.1.7
Public Member Functions | Public Attributes
Archetypes.tests.test_annotation.MetadataAnnotationStorageTest Class Reference
Inheritance diagram for Archetypes.tests.test_annotation.MetadataAnnotationStorageTest:
Inheritance graph
[legend]
Collaboration diagram for Archetypes.tests.test_annotation.MetadataAnnotationStorageTest:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def afterSetUp
def test_setup
def test_gestset

Public Attributes

 dummy
 ann

Detailed Description

Definition at line 104 of file test_annotation.py.


Member Function Documentation

Definition at line 106 of file test_annotation.py.

00106 
00107     def afterSetUp(self):
00108         gen_anndummy()
00109         dummy = AnnDummy(oid='dummy')
00110         self.folder._setObject('dummy', dummy)
00111         self.dummy = self.folder.dummy
00112         self.dummy.initializeArchetype()
00113         self.ann = getAnnotation(self.dummy)
        

Here is the call graph for this function:

Definition at line 121 of file test_annotation.py.

00121 
00122     def test_gestset(self):
00123         dummy = self.dummy
00124         ann = self.ann
00125         dummy.setMeta('egg')
00126         self.failUnlessEqual(dummy.getMeta(), 'egg')
00127         self.failUnlessEqual(ann.getSubkey(AT_MD_STORAGE, subkey='meta'), 'egg')

Definition at line 114 of file test_annotation.py.

00114 
00115     def test_setup(self):
00116         dummy = self.dummy
00117         field = dummy.getField('meta')
00118         self.failUnless(isinstance(field.storage, MetadataAnnotationStorage))
00119         self.failUnless(self.ann.hasSubkey(AT_MD_STORAGE, 'meta'))
00120         self.failUnlessEqual(self.ann.getSubkey(AT_MD_STORAGE, subkey='meta'), 'metadefault')


Member Data Documentation

Definition at line 112 of file test_annotation.py.

Definition at line 110 of file test_annotation.py.


The documentation for this class was generated from the following file: