Back to index

plone3  3.1.7
Public Member Functions | Private Member Functions
CMFCore.tests.test_SkinsTool.SkinsToolTests Class Reference

List of all members.

Public Member Functions

def test_z2interfaces
def test_z3interfaces
def test_add_invalid_path

Private Member Functions

def _makeOne

Detailed Description

Definition at line 43 of file test_SkinsTool.py.


Member Function Documentation

def CMFCore.tests.test_SkinsTool.SkinsToolTests._makeOne (   self,
  args,
  kw 
) [private]

Definition at line 45 of file test_SkinsTool.py.

00045 
00046     def _makeOne(self, *args, **kw):
00047         from Products.CMFCore.SkinsTool import SkinsTool
00048 
00049         return SkinsTool(*args, **kw)

Definition at line 75 of file test_SkinsTool.py.

00075 
00076     def test_add_invalid_path(self):
00077         tool = self._makeOne()
00078 
00079         # We start out with no wkin selections
00080         self.assertEquals(len(tool.getSkinSelections()), 0)
00081 
00082         # Add a skin selection with an invalid path element
00083         paths = 'foo, bar, .svn'
00084         tool.addSkinSelection('fooskin', paths)
00085 
00086         # Make sure the skin selection exists
00087         paths = tool.getSkinPath('fooskin')
00088         self.failIf(paths is None)
00089 
00090         # Test for the contents
00091         self.failIf(paths.find('foo') == -1)
00092         self.failIf(paths.find('bar') == -1)
00093         self.failUnless(paths.find('.svn') == -1)
00094 

Here is the call graph for this function:

Definition at line 50 of file test_SkinsTool.py.

00050 
00051     def test_z2interfaces(self):
00052         from Interface.Verify import verifyClass
00053         from Products.CMFCore.interfaces.portal_actions \
00054                 import ActionProvider as IActionProvider
00055         from Products.CMFCore.interfaces.portal_skins \
00056                 import portal_skins as ISkinsTool
00057         from Products.CMFCore.interfaces.portal_skins \
00058                 import SkinsContainer as ISkinsContainer
00059         from Products.CMFCore.SkinsTool import SkinsTool
00060 
00061         verifyClass(IActionProvider, SkinsTool)
00062         verifyClass(ISkinsContainer, SkinsTool)
00063         verifyClass(ISkinsTool, SkinsTool)

Definition at line 64 of file test_SkinsTool.py.

00064 
00065     def test_z3interfaces(self):
00066         from zope.interface.verify import verifyClass
00067         from Products.CMFCore.interfaces import IActionProvider
00068         from Products.CMFCore.interfaces import ISkinsContainer
00069         from Products.CMFCore.interfaces import ISkinsTool
00070         from Products.CMFCore.SkinsTool import SkinsTool
00071 
00072         verifyClass(IActionProvider, SkinsTool)
00073         verifyClass(ISkinsContainer, SkinsTool)
00074         verifyClass(ISkinsTool, SkinsTool)


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