[web2py] testing routes.py patterns

2010-08-08 Thread Jonathan Lundell
I've been advocating the use of doctests in routes.py to debug problems. Here's another doctest you can use (I'll send a patch to Massimo that adds an example). compile_re('.*http://otherdomain.com.* (?Pany.*)', '/app/ctr\gany')[0].pattern '^.*http://otherdomain.com.* (?Pany.*)$'

Re: [web2py] testing routes.py patterns

2010-08-08 Thread Jonathan Lundell
On Aug 8, 2010, at 8:31 AM, Jonathan Lundell wrote: I've been advocating the use of doctests in routes.py to debug problems. Here's another doctest you can use (I'll send a patch to Massimo that adds an example). compile_re('.*http://otherdomain.com.* (?Pany.*)',