diff options
| -rw-r--r-- | docs/narr/testing.rst | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/docs/narr/testing.rst b/docs/narr/testing.rst index 2182082a8..ec2d1fad1 100644 --- a/docs/narr/testing.rst +++ b/docs/narr/testing.rst @@ -411,9 +411,8 @@ The following example functional test demonstrates invoking the above :pyobject: FunctionalTests :language: python -When this test is run, each test method creates a "real" :term:`WSGI` -application using the ``main`` function in your ``myproject.__init__`` module, -using :term:`WebTest` to wrap that WSGI application. It assigns the result to +When these tests are run, each test method creates a "real" :term:`WSGI` application using the ``main`` function in your ``myproject.__init__`` module, using :term:`WebTest` to wrap that WSGI application. +It assigns the result to ``self.testapp``. In the test named ``test_root``, the ``TestApp``'s ``GET`` method is used to invoke the root URL. Finally, an assertion is made that the returned HTML contains the text ``Pyramid``. |
