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 [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/pylons-discuss?hl=en.