def test_render(self):
        # test render with invalid token
        resp = self.client.get(self.url3)
        self.assertRedirects(resp, self.redirect_invalid)
        resp = self.client.get(self.url3, follow_redirects=True)
        self.assertTrue('Invalid Link.' in resp.data)

        # test render with registered email
        resp = self.client.get(self.url2)
        self.assertRedirects(resp, self.redirect_invalid)
        resp = self.client.get(self.url2, follow_redirects=True)
        self.assertTrue('E-mail not found.' in resp.data)

        # test render with valid token
        resp = self.client.get(self.url)
        self.assertStatus(resp, 200)
dataset/ETHPy150Open allisson/flask-example/accounts/tests/test_views.py/RecoverPasswordConfirmViewTest.test_render/original