示例#1
0
 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
示例#2
0
    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
示例#3
0
 def setUp(self):
     self.app = app.test_client()
示例#4
0
 def setUp(self):
     self.app = app.test_client()