Back to index

plone3  3.1.7
Public Member Functions | Public Attributes
ATContentTypes.tests.test_migrations.TestMigrations_v1_2 Class Reference
Inheritance diagram for ATContentTypes.tests.test_migrations.TestMigrations_v1_2:
Inheritance graph
[legend]
Collaboration diagram for ATContentTypes.tests.test_migrations.TestMigrations_v1_2:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def afterSetUp
def testUpgradeATCTTool
def testUpgradeATCTToolTwice

Public Attributes

 tool

Detailed Description

Definition at line 10 of file test_migrations.py.


Member Function Documentation

Definition at line 12 of file test_migrations.py.

00012 
00013     def afterSetUp(self):
00014         self.tool = getToolByName(self.portal, TOOLNAME)

Definition at line 15 of file test_migrations.py.

00015 
00016     def testUpgradeATCTTool(self):
00017         self.assertEquals(self.tool.getProperty('album_batch_size'), 30)
00018         self.tool._setPropValue('album_batch_size', 99)
00019         self.tool._setPropValue('_version', '1.1.x (svn/testing)')
00020         upgradeATCTTool(self.portal, [])
00021         self.assertEquals(self.tool.getProperty('album_batch_size'), 99)

Here is the call graph for this function:

Definition at line 22 of file test_migrations.py.

00022 
00023     def testUpgradeATCTToolTwice(self):
00024         self.assertEquals(self.tool.getProperty('album_batch_size'), 30)
00025         self.tool._setPropValue('album_batch_size', 99)
00026         self.tool._setPropValue('_version', '1.1.x (svn/testing)')
00027         upgradeATCTTool(self.portal, [])
00028         upgradeATCTTool(self.portal, [])
00029         self.assertEquals(self.tool.getProperty('album_batch_size'), 99)
00030 

Here is the call graph for this function:


Member Data Documentation

Definition at line 13 of file test_migrations.py.


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