Back to index

plone3  3.1.7
Classes | Functions | Variables
ATContentTypes.tests.utils Namespace Reference

Classes

class  FakeRequestSession
class  DummySessionDataManager
class  DummySDMTraverseHook

Functions

def Xprint
def dcEdit
def input_file_path

Variables

tuple PACKAGE_HOME = package_home(globals())
tuple EmptyValidator = ValidationChain('isEmpty')
tuple idValidator = ValidationChain('isValidId')
tuple TidyHTMLValidator = ValidationChain('isTidyHtmlChain')
tuple NotRequiredTidyHTMLValidator = ValidationChain('isTidyHtmlNotRequiredChain')
tuple URLValidator = ValidationChain('isURL')
tuple EmailValidator = ValidationChain('isEmailChain')
tuple PhoneValidator = ValidationChain('isPhoneChain')
tuple PREFIX = os.path.abspath(os.path.dirname(__file__))

Function Documentation

dublin core edit (inplace)

Definition at line 113 of file utils.py.

00113 
00114 def dcEdit(obj):
00115     """dublin core edit (inplace)
00116     """
00117     obj.setTitle('Test title')
00118     obj.setDescription('Test description')
00119     obj.setSubject('Test subject')
00120     obj.setContributors(('test user a',))
00121     obj.setEffectiveDate(DateTime() -1)
00122     obj.setExpirationDate(DateTime() +2)
00123     obj.setFormat('text/structured')
00124     obj.setLanguage('de')
00125     obj.setRights('GPL')
    

Here is the caller graph for this function:

Definition at line 153 of file utils.py.

00153 
00154 def input_file_path(file): 
00155     return os.path.join(PREFIX, 'input', file) 

Here is the caller graph for this function:

print helper

print data via print is not possible, you have to use
ZopeTestCase._print or this function

Definition at line 104 of file utils.py.

00104 
00105 def Xprint(s):
00106     """print helper
00107 
00108     print data via print is not possible, you have to use
00109     ZopeTestCase._print or this function
00110     """
00111     ZopeTestCase._print(str(s)+'\n')


Variable Documentation

tuple ATContentTypes.tests.utils.EmailValidator = ValidationChain('isEmailChain')

Definition at line 140 of file utils.py.

tuple ATContentTypes.tests.utils.EmptyValidator = ValidationChain('isEmpty')

Definition at line 127 of file utils.py.

tuple ATContentTypes.tests.utils.idValidator = ValidationChain('isValidId')

Definition at line 129 of file utils.py.

tuple ATContentTypes.tests.utils.NotRequiredTidyHTMLValidator = ValidationChain('isTidyHtmlNotRequiredChain')

Definition at line 134 of file utils.py.

tuple ATContentTypes.tests.utils.PACKAGE_HOME = package_home(globals())

Definition at line 28 of file utils.py.

tuple ATContentTypes.tests.utils.PhoneValidator = ValidationChain('isPhoneChain')

Definition at line 147 of file utils.py.

tuple ATContentTypes.tests.utils.PREFIX = os.path.abspath(os.path.dirname(__file__))

Definition at line 151 of file utils.py.

tuple ATContentTypes.tests.utils.TidyHTMLValidator = ValidationChain('isTidyHtmlChain')

Definition at line 132 of file utils.py.

tuple ATContentTypes.tests.utils.URLValidator = ValidationChain('isURL')

Definition at line 137 of file utils.py.