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
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
2 matches
Mail list logo