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
[legend]
Collaboration diagram for Archetypes.tests.test_fieldvalidation.TestValidation:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def afterSetUp
def testIntegerZeroInvalid

Public Attributes

 instance

Detailed Description

Definition at line 130 of file test_fieldvalidation.py.


Member Function Documentation

Definition at line 132 of file test_fieldvalidation.py.

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

Definition at line 135 of file test_fieldvalidation.py.

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


Member Data Documentation

Definition at line 133 of file test_fieldvalidation.py.


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