def test_app(self): _app = app.test_client() response = _app.get('/') assert response.data.find("""<p id="f*****g-password">""") != -1 response = _app.get('/?length=256') assert response.data.find("""<p id="f*****g-error">""") != -1
def setUp(self): self.app = app.test_client()