Back to index

plone3  3.1.7
Public Member Functions | Public Attributes
ResourceRegistries.tests.testKSSRegistry.TestKineticStylesheetRenaming Class Reference
Inheritance diagram for ResourceRegistries.tests.testKSSRegistry.TestKineticStylesheetRenaming:
Inheritance graph
[legend]
Collaboration diagram for ResourceRegistries.tests.testKSSRegistry.TestKineticStylesheetRenaming:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def afterSetUp
def testRenaming
def testRenamingIdClash
def testDoubleRenaming

Public Attributes

 tool

Detailed Description

Definition at line 99 of file testKSSRegistry.py.


Member Function Documentation

Definition at line 101 of file testKSSRegistry.py.

00101 
00102     def afterSetUp(self):
00103         self.tool = getattr(self.portal, KSSTOOLNAME)
00104         self.tool.clearResources()

Definition at line 123 of file testKSSRegistry.py.

00123 
00124     def testDoubleRenaming(self):
00125         self.tool.registerKineticStylesheet('ham')
00126         self.tool.registerKineticStylesheet('spam')
00127         self.tool.registerKineticStylesheet('eggs')
00128         self.tool.renameResource('spam', 'bacon')
00129         self.assertRaises(ValueError, self.tool.renameResource, 'spam', 'bacon')
00130 

Definition at line 105 of file testKSSRegistry.py.

00105 
00106     def testRenaming(self):
00107         self.tool.registerKineticStylesheet('ham')
00108         self.tool.registerKineticStylesheet('spam')
00109         self.tool.registerKineticStylesheet('eggs')
00110         self.assertEqual(self.tool.concatenatedresources[
00111                          self.tool.cookedresources[0].getId()],
00112                          ['ham', 'spam', 'eggs'])
00113         self.tool.renameResource('spam', 'bacon')
00114         self.assertEqual(self.tool.concatenatedresources[
00115                          self.tool.cookedresources[0].getId()],
00116                          ['ham', 'bacon', 'eggs'])

Definition at line 117 of file testKSSRegistry.py.

00117 
00118     def testRenamingIdClash(self):
00119         self.tool.registerKineticStylesheet('ham')
00120         self.tool.registerKineticStylesheet('spam')
00121         self.tool.registerKineticStylesheet('eggs')
00122         self.assertRaises(ValueError, self.tool.renameResource, 'spam', 'eggs')


Member Data Documentation

Definition at line 102 of file testKSSRegistry.py.


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