Back to index

plone3  3.1.7
Classes | Functions | Variables
CMFPlone.tests.testInterfaces Namespace Reference

Classes

class  InterfaceTest
class  zope_interface_test
class  KlassInterfaceTest
class  InstanceInterfaceTest

Functions

def className
def dottedName
def test_suite

Variables

list tests = []
list testClasses
list testInstances
tuple name = className(klass)
string funcName = 'test%sInterface'

Function Documentation

get the short class name 

Definition at line 50 of file testInterfaces.py.

00050 
00051 def className(klass):
00052     """ get the short class name """
00053     if not isinstance(klass, (TypeType, ClassType,
00054                               ExtensionClass, InterfaceClass)):
00055         # Looks like an instance, get it's class.
00056         if hasattr(klass, '__class__'):
00057             klass = klass.__class__
00058     return klass.__name__

Definition at line 59 of file testInterfaces.py.

00059 
00060 def dottedName(klass):
00061     return "%s.%s" % (klass.__module__, klass.__name__)
00062 
# list of tests

Here is the caller graph for this function:

Definition at line 373 of file testInterfaces.py.

00373 
00374 def test_suite():
00375     suite = unittest.TestSuite()
00376     for test in tests:
00377         suite.addTest(unittest.makeSuite(test))
00378     return suite


Variable Documentation

string CMFPlone.tests.testInterfaces.funcName = 'test%sInterface'

Definition at line 331 of file testInterfaces.py.

Definition at line 330 of file testInterfaces.py.

Initial value:
00001 [
00002     (ActionIconsTool, ()),
00003     (ActionsTool, ()),
00004     (CalendarTool, ()),
00005     (CatalogTool, ()),
00006     (DiscussionTool, ()),
00007     (FactoryTool, ()), (TempFolder, ()),
00008     (GroupDataTool, ()),
00009     (GroupsTool, ()),
00010     (InterfaceTool, ()),
00011     (MemberDataTool, ()),
00012     (MembershipTool, ()),
00013     (MetadataTool, ()),
00014     (MigrationTool, ()),
00015     (PloneControlPanel, ()), (PloneConfiglet, ()),
00016     (OrderedContainer, ()), (BasePloneFolder, ()), (PloneFolder, ()),
00017     (PloneTool, ()),
00018     (PloneSite, ()),
00019     (PropertiesTool, ()), (SimpleItemWithProperties, ()),
00020     (QuickInstallerTool, ()),
00021     (RegistrationTool, ()),
00022     (SkinsTool, ()),
00023     (SyndicationTool, ()),
00024     (TypesTool, ()),
00025     (UndoTool, ()),
00026     (URLTool, ()),
00027     (WorkflowTool, ()),
00028 ]

Definition at line 293 of file testInterfaces.py.

Initial value:
00001 [
00002     # (, ()),
00003 ]

Definition at line 324 of file testInterfaces.py.

Definition at line 63 of file testInterfaces.py.