Back to index

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

Classes

class  MyValidator
class  FakeType
class  TestSettings
class  TestValidation

Functions

def test_suite

Variables

list settings

Function Documentation

Definition at line 143 of file test_fieldvalidation.py.

00143 
00144 def test_suite():
00145     from unittest import TestSuite, makeSuite
00146     suite = TestSuite()
00147     suite.addTest(makeSuite(TestSettings))
00148     suite.addTest(makeSuite(TestValidation))
00149     return suite

Variable Documentation

Initial value:
00001 [
00002     {'field': {}, # this is the dict of field properties
00003      'value': None,
00004      'assertion': lambda result:result is None, # result of field.validate()
00005      },
00006 
00007     {'field': {'required': 1}, # required
00008      'value': None,            # ... but no value given
00009      'assertion': lambda result:result is not None},
00010 
00011     ]

Definition at line 53 of file test_fieldvalidation.py.