def show():
    """
    >>> request.args.clear()
    >>> try: print show()
    >>> except HTTP, http: print 'ok'
    ok
    """
    if request.args(0) == None:
        redirect(URL('index'))

On Jan 27, 4:08 am, walter <wdv...@gmail.com> wrote:
> Excuse me. May be I'm stupid, but I don't understand how to test next
> case. I want to test that a response.status really has 303.
>
> Bit of my code:
>
> def show():
>     if request.args(0) == None:
>         redirect(URL('index'))
>
> How should I write a doctest for this?

Reply via email to