Back to index

plone3  3.1.7
Public Member Functions | Public Attributes
CMFPlone.tests.testInterfaceTool.TestInterfaceTool Class Reference
Inheritance diagram for CMFPlone.tests.testInterfaceTool.TestInterfaceTool:
Inheritance graph
[legend]
Collaboration diagram for CMFPlone.tests.testInterfaceTool.TestInterfaceTool:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def afterSetUp
def testContentImplements
def testDocumentImplements
def testDCImplements
def testAImplements
def testBImplements
def testNamesAndDescriptions
def setRequestMethod
def getAuthenticator
def setupAuthenticator

Public Attributes

 interface

Detailed Description

Definition at line 61 of file testInterfaceTool.py.


Member Function Documentation

Definition at line 63 of file testInterfaceTool.py.

00063 
00064     def afterSetUp(self):
00065         self.interface = self.portal.portal_interface

Definition at line 30 of file PloneTestCase.py.

00030 
00031     def getAuthenticator(self):
00032         tag = AuthenticatorView('context', 'request').authenticator()
00033         pattern = '<input .*name="(\w+)".*value="(\w+)"'
00034         return match(pattern, tag).groups()

Here is the call graph for this function:

Here is the caller graph for this function:

def CMFPlone.tests.PloneTestCase.PloneTestCase.setRequestMethod (   self,
  method 
) [inherited]
This is a stub now, but in case you want to try
   something fancy on Your Branch (tm), put it here.

Definition at line 26 of file PloneTestCase.py.

00026 
00027     def setRequestMethod(self, method):
00028         self.app.REQUEST.set('REQUEST_METHOD', method)
00029         self.app.REQUEST.method = method

Here is the caller graph for this function:

Definition at line 35 of file PloneTestCase.py.

00035 
00036     def setupAuthenticator(self):
00037         name, token = self.getAuthenticator()
00038         self.app.REQUEST.form[name] = token
00039 

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 79 of file testInterfaceTool.py.

00079 
00080     def testAImplements(self):
00081         a = A()
00082         self.failUnless(self.interface.objectImplements(a, getDottedName(Contentish)))
00083         self.failUnless(self.interface.objectImplements(a, getDottedName(DublinCore)))
00084         self.failIf(self.interface.objectImplements(a, getDottedName(MyPortalContent)))

Here is the call graph for this function:

Definition at line 85 of file testInterfaceTool.py.

00085 
00086     def testBImplements(self):
00087         b = B()
00088         self.failUnless(self.interface.objectImplements(b, getDottedName(Contentish)))
00089         self.failUnless(self.interface.objectImplements(b, getDottedName(DublinCore)))
00090         self.failUnless(self.interface.objectImplements(b, getDottedName(MyPortalContent)))

Here is the call graph for this function:

Definition at line 66 of file testInterfaceTool.py.

00066 
00067     def testContentImplements(self):
00068         content = PortalContent()
00069         self.failUnless(self.interface.objectImplements(content, getDottedName(Contentish)))

Here is the call graph for this function:

Definition at line 75 of file testInterfaceTool.py.

00075 
00076     def testDCImplements(self):
00077         dc = DefaultDublinCoreImpl()
00078         self.failUnless(self.interface.objectImplements(dc, getDottedName(DublinCore)))

Here is the call graph for this function:

Definition at line 70 of file testInterfaceTool.py.

00070 
00071     def testDocumentImplements(self):
00072         document = Document(id='foo')
00073         self.failUnless(self.interface.objectImplements(document, getDottedName(Contentish)))
00074         self.failUnless(self.interface.objectImplements(document, getDottedName(DublinCore)))

Here is the call graph for this function:

Definition at line 91 of file testInterfaceTool.py.

00091 
00092     def testNamesAndDescriptions(self):
00093         from Products.CMFPlone.interfaces.InterfaceTool import IInterfaceTool
00094         nd = self.interface.namesAndDescriptions(getDottedName(IInterfaceTool))
00095         nd2 = IInterfaceTool.namesAndDescriptions()
00096         nd2 = [(n, d.getDoc()) for n, d in nd2]
00097         self.assertEquals(nd, nd2)
00098 

Here is the call graph for this function:


Member Data Documentation

Definition at line 64 of file testInterfaceTool.py.


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