Back to index

plone3  3.1.7
Classes | Functions | Variables
Archetypes.tests.test_interfaces Namespace Reference

Classes

class  InterfaceTest
class  FieldInterfaceTest
class  BC
class  BF
class  OBF
class  KlassInterfaceTest
class  InstanceInterfaceTest

Functions

def className
def make_test_instances
def test_suite

Variables

list tests = []
list testClasses
string PROJECTNAME = 'Archetypes.tests'
tuple testInstances = safe_load_site_wrapper(make_test_instances)
tuple name = className(klass)
string funcName = 'test%sInterface'

Function Documentation

get the short class name 

Definition at line 66 of file test_interfaces.py.

00066 
00067 def className(klass):
00068     """ get the short class name """
00069     # remove <>
00070     name = str(klass)[1:-1]
00071     return name.split('.')[-1].split(' ')[0]
00072 
# list of tests

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 210 of file test_interfaces.py.

00210 
00211 def make_test_instances():
00212     return [
00213         # (EM(), ()), XXX See comment on ExtensibleMetadata
00214         (BC('test'), ()),
00215         (BF('test'), ()),
00216         (OBF('test'), ()),
00217         ]
00218 
# @@ so inefficient

Definition at line 253 of file test_interfaces.py.

00253 
00254 def test_suite():
00255     from unittest import TestSuite, makeSuite
00256     suite = TestSuite()
00257     for test in tests:
00258         suite.addTest(makeSuite(test))
00259     return suite

Variable Documentation

string Archetypes.tests.test_interfaces.funcName = 'test%sInterface'

Definition at line 225 of file test_interfaces.py.

Definition at line 224 of file test_interfaces.py.

string Archetypes.tests.test_interfaces.PROJECTNAME = 'Archetypes.tests'

Definition at line 198 of file test_interfaces.py.

Initial value:
00001 [
00002     (BaseObject, ()),
00003     (BaseUnit, ()),
00004     (Marshaller, ()), (PrimaryFieldMarshaller, ()), (RFC822Marshaller, ()),
00005     (Schema, ()),
00006     (Storage, ()), (ReadOnlyStorage, ()), (StorageLayer, ()),
00007         (AttributeStorage, ()), (ObjectManagedStorage, ()),
00008         (MetadataStorage, ()),
00009     (BaseSQLStorage, ()), (GadflySQLStorage, ()), (MySQLSQLStorage, ()),
00010         (PostgreSQLStorage, ()),
00011 ]

Definition at line 186 of file test_interfaces.py.

Definition at line 220 of file test_interfaces.py.

Definition at line 73 of file test_interfaces.py.