Re: How to test Validatidators

2006-09-23 Thread Maximillian Dornseif
Thanks for the enlightenment - seems I had some misconceptions about how validators work. Based on this misconceptions I designed some tests which somehow worked but not as I liked - hence my posting. My crude first cut was like this: # ripped out of django/db/models/base.py def validate(instance

Re: How to test Validatidators

2006-09-23 Thread Malcolm Tredinnick
On Fri, 2006-09-22 at 23:46 -0700, Maximillian Dornseif wrote: > I'm struggeling to build tests for (custom) validators - see > http://www.djangoproject.com/documentation/forms/#validators for the > basics. > > To my understanding there are two kinds of validators: > > a) Validators inherent t