Back to index

plone3  3.1.7
Public Member Functions | Public Attributes
Archetypes.tests.test_fieldvalidation.TestValidation Class Reference
Inheritance diagram for Archetypes.tests.test_fieldvalidation.TestValidation:
Inheritance graph
Collaboration diagram for Archetypes.tests.test_fieldvalidation.TestValidation:
Collaboration graph

List of all members.

Public Member Functions

def afterSetUp
def testIntegerZeroInvalid

Public Attributes


Detailed Description

Definition at line 130 of file

Member Function Documentation

Definition at line 132 of file

00133     def afterSetUp(self):
00134         self.instance = FakeType('fake')

Definition at line 135 of file

00136     def testIntegerZeroInvalid(self):
00137         # attach a validator that never validates, so any value must fail
00138         field = IntegerField('integer', validators=('v3',))
00140         self.assert_(field.validate(1, self.instance, errors={}) is not None)
00141         self.assert_(field.validate(0, self.instance, errors={}) is not None)

Member Data Documentation

Definition at line 133 of file

The documentation for this class was generated from the following file: