Re: How to unit test form clean methods

2008-10-12 Thread James Bennett
On Sun, Oct 12, 2008 at 8:30 PM, meppum <[EMAIL PROTECTED]> wrote: > I would like to be able to unit test my forms. Specifically, I'd like > to be able to test individual clean methods, but I get errors when I > try to call cleaned methods directly. Below is an example of testing a > registration

Re: How to unit test form clean methods

2008-10-12 Thread reyjexter
you can simply create a form on your test case and pass in dictionary to mimic request parameters. I have blogged about it and you can find it here: http://www.reyjexter.com/post/unit-testing-django-component-example -rey On Oct 13, 9:30 am, meppum <[EMAIL PROTECTED]> wrote: > I would like to b