def test_get(self):
        with self.app.test_request_context():
            response = self.client.get(url_for('test'))
        self.assertEqual(200, response.status_code)
        self.assertIn('name="username"', response.data)
        self.assertIn('value="Foo"', response.data)
Test GET request.
dataset/ETHPy150Open brocaar/flask-views/flask_views/tests/functional/test_edit.py/FormViewTestCase.test_get