diff options
| author | Chris McDonough <chrism@plope.com> | 2013-10-17 15:21:56 -0400 |
|---|---|---|
| committer | Chris McDonough <chrism@plope.com> | 2013-10-17 15:21:56 -0400 |
| commit | 4065081434a455a61377c770705375e085be8f16 (patch) | |
| tree | 613b7a619d3e8846765ab51ee7d35ba518919690 /docs/quick_tutorial/unit_testing.rst | |
| parent | 61d1f729f4d9cc17a5fbcff0612512bc9f5fe7a2 (diff) | |
| parent | 3acee31f86bcde8abbb4e63715afc5ca67976eaf (diff) | |
| download | pyramid-4065081434a455a61377c770705375e085be8f16.tar.gz pyramid-4065081434a455a61377c770705375e085be8f16.tar.bz2 pyramid-4065081434a455a61377c770705375e085be8f16.zip | |
Merge branch 'master' of github.com:Pylons/pyramid
Diffstat (limited to 'docs/quick_tutorial/unit_testing.rst')
| -rw-r--r-- | docs/quick_tutorial/unit_testing.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/quick_tutorial/unit_testing.rst b/docs/quick_tutorial/unit_testing.rst index 73b33c588..ed33f62d7 100644 --- a/docs/quick_tutorial/unit_testing.rst +++ b/docs/quick_tutorial/unit_testing.rst @@ -77,7 +77,7 @@ some ``pyramid.testing`` helpers which we use in the test setup and teardown. Our one test imports the view, makes a dummy request, and sees if the view returns what we expected. -The ``tests.HelloWorldViewTests.test_hello_world`` test is a small +The ``tests.TutorialViewTests.test_hello_world`` test is a small example of a unit test. First, we import the view inside each test. Why not import at the top, like in normal Python code? Because imports can cause effects that break a test. We'd like our tests to be in *units*, |
