Back to index

plone3  3.1.7
Classes | Functions | Variables
GenericSetup.tests.test_content Namespace Reference

Classes

class  SimpleINIAwareTests
class  FolderishExporterImporterTests
class  Test_globpattern
class  CSVAwareFileAdapterTests
class  INIAwareFileAdapterTests
class  DAVAwareFileAdapterTests

Functions

def _makePropertied
def _makeCSVAware
def _makeINIAware
def _makeDAVAware
def _makeItem
def _makeFolder
def test_suite

Variables

string _PROPERTIES_TEMPLATE

Function Documentation

def GenericSetup.tests.test_content._makeCSVAware (   id,
  csv = None 
) [private]

Definition at line 860 of file test_content.py.

00860 
00861 def _makeCSVAware(id, csv=None):
00862     from faux_objects import TestCSVAware
00863 
00864     aware = TestCSVAware()
00865     aware._setId(id)
00866     if csv is not None:
00867         aware._csv = csv
00868 
00869     return aware
00870 

Here is the caller graph for this function:

Definition at line 880 of file test_content.py.

00880 
00881 def _makeDAVAware(id):
00882     from faux_objects import TestDAVAware
00883 
00884     aware = TestDAVAware()
00885     aware._setId(id)
00886 
00887     return aware
00888 

Here is the caller graph for this function:

Definition at line 898 of file test_content.py.

00898 
00899 def _makeFolder(id):
00900     from OFS.Folder import Folder
00901     from zope.interface import directlyProvides
00902     from zope.interface import providedBy
00903 
00904     folder = Folder(id)
00905     directlyProvides(folder, providedBy(folder)
00906                              + IObjectManager + IPropertyManager)
00907 
00908     return folder
00909 

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 871 of file test_content.py.

00871 
00872 def _makeINIAware(id):
00873     from faux_objects import TestINIAware
00874 
00875     aware = TestINIAware()
00876     aware._setId(id)
00877 
00878     return aware
00879 

Here is the caller graph for this function:

Definition at line 889 of file test_content.py.

00889 
00890 def _makeItem(id):
00891     from faux_objects import TestSimpleItem
00892 
00893     aware = TestSimpleItem()
00894     aware._setId(id)
00895 
00896     return aware
00897 

Here is the caller graph for this function:

Definition at line 852 of file test_content.py.

00852 
00853 def _makePropertied(id):
00854     from faux_objects import TestSimpleItemWithProperties
00855 
00856     propertied = TestSimpleItemWithProperties()
00857     propertied._setId(id)
00858 
00859     return propertied

Here is the caller graph for this function:

Definition at line 910 of file test_content.py.

00910 
00911 def test_suite():
00912     suite = unittest.TestSuite()
00913     suite.addTest(unittest.makeSuite(SimpleINIAwareTests))
00914     suite.addTest(unittest.makeSuite(FolderishExporterImporterTests))
00915     suite.addTest(unittest.makeSuite(Test_globpattern))
00916     suite.addTest(unittest.makeSuite(CSVAwareFileAdapterTests))
00917     suite.addTest(unittest.makeSuite(INIAwareFileAdapterTests))
00918     suite.addTest(unittest.makeSuite(DAVAwareFileAdapterTests))
00919     return suite


Variable Documentation

Initial value:
00001 """
00002 [DEFAULT]
00003 Title = %s
00004 Description = This is a test
00005 """

Definition at line 769 of file test_content.py.