diff options
| author | Steve Piercy <web@stevepiercy.com> | 2013-10-08 16:51:24 -0700 |
|---|---|---|
| committer | Steve Piercy <web@stevepiercy.com> | 2013-10-08 16:51:24 -0700 |
| commit | 7f7d86e1e767f0339266d00c3a4723477add28b5 (patch) | |
| tree | d474b33ec2320f5849d35d54e5e96c2b00daeced /docs/quick_tutorial/unit_testing.rst | |
| parent | 6b2e8ee2a63f601a1708c0e74e6ea5b3551507f1 (diff) | |
| parent | d7f8766ef2154c64b9fc040e5bf0a8249e5c366f (diff) | |
| download | pyramid-7f7d86e1e767f0339266d00c3a4723477add28b5.tar.gz pyramid-7f7d86e1e767f0339266d00c3a4723477add28b5.tar.bz2 pyramid-7f7d86e1e767f0339266d00c3a4723477add28b5.zip | |
Merge branch 'origin/master'
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*, |
