Back to index

plone3  3.1.7
Classes | Functions | Variables
wicked.plone.tests Namespace Reference

Classes

class  ZCMLLayer
class  SelectiveATCT

Functions

def make_wicked_suite
def test_suite

Variables

tuple test_klasses

Function Documentation

def wicked.plone.tests.make_wicked_suite (   klasses,
  layer,
  content_type = "Document",
  field = "text" 
)
a factory to spitting out a new test class and new suite for
these functional tests

Definition at line 62 of file tests.py.

00062 
00063 def make_wicked_suite(klasses, layer, content_type="Document", field="text"):
00064     """a factory to spitting out a new test class and new suite for
00065     these functional tests"""
00066     suite = unittest.TestSuite()
00067 
00068     for klass in klasses:
00069         newname = '%s_%s' %(klass.__name__, layer.__name__)
00070         bases = (klass,)
00071         newdict = dict(wicked_type=content_type,
00072                        wicked_field=field,
00073                        layer=layer,
00074                        setter='setText')
00075         newklass = type(newname, bases, newdict)
00076         new = unittest.makeSuite(newklass)
00077         suite.addTest(new)
00078     return suite
00079 
        

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 80 of file tests.py.

00080 
00081 def test_suite():
00082     suites = make_wicked_suite(test_klasses, SelectiveATCT) 
00083     return unittest.TestSuite(suites)
00084     
00085     

Here is the call graph for this function:


Variable Documentation

Initial value:
00001 (test_cache.TestLinkCache,
00002                 test_linking.TestDocCreation,
00003                 test_linking.TestWikiLinking,
00004                 test_linking.TestLinkNormalization,
00005                 test_linking.TestRemoteLinking)

Definition at line 18 of file tests.py.