示例#1
0
 def test_redirects_to_home_page(self, response):
     redirect_url = url_for('frontpage.index', _external=False)
     assert_redirects(response, redirect_url)
示例#2
0
 def test_redirects_home(self, client, login, user):
     response = client.get(url_for('auth.logout'))
     redirect_url = url_for('frontpage.index', _external=False)
     assert_redirects(response, redirect_url)