Back to index

plone3  3.1.7
Public Member Functions
Archetypes.tests.test_varschema.VarSchemataTest Class Reference
Inheritance diagram for Archetypes.tests.test_varschema.VarSchemataTest:
Inheritance graph
Collaboration diagram for Archetypes.tests.test_varschema.VarSchemataTest:
Collaboration graph

List of all members.

Public Member Functions

def afterSetUp
def test_variableschema

Detailed Description

Definition at line 38 of file

Member Function Documentation

Definition at line 40 of file

00041     def afterSetUp(self):
00042         registerType(Dummy, 'Archetypes')
00043         content_types, constructors, ftis = process_types(listTypes(), PKG_NAME)

Here is the call graph for this function:

Definition at line 44 of file

00045     def test_variableschema(self):        
00046         self.folder.dummy = Dummy(oid='dummy')
00047         dummy = self.folder.dummy
00048         dummy.setTitle('dummy1')
00049         self.assertEqual(dummy.Title(),'dummy1')
00051         #change the schema
00052         dummy.schema=schema1
00053         #try to read an old value using the new schema
00054         self.assertEqual(dummy.Title(),'dummy1')
00055         dummy.setAdditionalField('flurb')
00056         #check if we can read the new field using the new schema
00057         self.assertEqual(dummy.getAdditionalField(),'flurb')

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