Re: doctests in views.py

2008-05-23 Thread Panos Laganakos
You might wanna look into using the [1]Test Client. It allows you to build the request and see what the response is, pretty nice actually. [1] http://www.djangoproject.com/documentation/testing/#the-test-client On May 22, 9:31 pm, "Viktor Nagy" <[EMAIL PROTECTED]> wrote: > Hello, > > I've a ver

doctests in views.py

2008-05-22 Thread Viktor Nagy
Hello, I've a very simple views file, that I would like to test with doctests. For example a partial code is this: @require_POST def save(request, type): ''' This adds a new element to the queue >>> response = c.post('/queue/new/email', {'title': 'MyTitle'}) >>> response.status_c