Back to index

plone3  3.1.7
Public Member Functions
CMFPlone.tests.testInterfaceTool.TestInterfaceResolution Class Reference

List of all members.

Public Member Functions

def testResolveDublinCore
def testResolveContentish
def testResolveNonInterface

Detailed Description

Definition at line 33 of file testInterfaceTool.py.


Member Function Documentation

Definition at line 40 of file testInterfaceTool.py.

00040 
00041     def testResolveContentish(self):
00042         # Contentish should be resolved
00043         dotted_name = getDottedName(Contentish)
00044         self.assertEqual(resolveInterface(dotted_name), Contentish)

Here is the call graph for this function:

Definition at line 35 of file testInterfaceTool.py.

00035 
00036     def testResolveDublinCore(self):
00037         # DublinCore should be resolved
00038         dotted_name = getDottedName(DublinCore)
00039         self.assertEqual(resolveInterface(dotted_name), DublinCore)

Here is the call graph for this function:

Definition at line 45 of file testInterfaceTool.py.

00045 
00046     def testResolveNonInterface(self):
00047         # Should raise ValueError when called with non-Interface
00048         dotted_name = getDottedName(PortalContent)
00049         self.assertRaises(ValueError, resolveInterface, dotted_name)
00050 

Here is the call graph for this function:


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