Guest User

Untitled

a guest
Oct 20th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. from sauce.tests import TestController
  2.  
  3. __all__ = ['TestSite']
  4.  
  5.  
  6. class TestSite(TestController):
  7. sites = ['/', '/about', '/contact']
  8.  
  9. def _do_site(self, site):
  10. response = self.app.get(site)
  11. assert response.status.startswith('2')
  12.  
  13. def test_sites(self):
  14. for site in self.sites:
  15. yield self._do_site, site
Add Comment
Please, Sign In to add comment