ah! thanks. time to rewrite! On May 11, 12:40 pm, Michael Merickel <mmeri...@gmail.com> wrote: > The unittest assert* functions have an optional msg parameter. > > On Fri, May 11, 2012 at 10:46 AM, Jonathan Vanasco > > > > > > > > <jonat...@findmeon.com> wrote: > > i'm trying to devise the simplest way to write/manage tests for > > ancillary urls ( legal, contact, etc) and just general 'does this even > > render' > > > the first generation of my tests look like this: > > > def test_ancillary(self): > > urls= [ > > '/', > > '/about', > > '/about/help', > > '/legal/privacy-policy', > > '/legal/terms-of-service', > > ] > > for url in urls: > > res = self.app.get(url,headers=headers_preview()) > > self.assertEqual(res.status_int, 200) > > > the problem is that, on error, "test_ancillary" fails - and without > > naming which url failed. it also stops running the test on first > > error. > > > does anyone know of a good way to either: > > > 1. adjust the test to let me know what fails and to keep testing > > 2. automate creating unique tests , so I can get a better fail message > > 3. an even better solution > > > -- > > You received this message because you are subscribed to the Google Groups > > "pylons-discuss" group. > > To post to this group, send email to pylons-discuss@googlegroups.com. > > To unsubscribe from this group, send email to > > pylons-discuss+unsubscr...@googlegroups.com. > > For more options, visit this group > > athttp://groups.google.com/group/pylons-discuss?hl=en.
-- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post to this group, send email to pylons-discuss@googlegroups.com. To unsubscribe from this group, send email to pylons-discuss+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en.