diff options
| author | Chris McDonough <chrism@plope.com> | 2011-07-01 02:17:29 -0400 |
|---|---|---|
| committer | Chris McDonough <chrism@plope.com> | 2011-07-01 02:17:29 -0400 |
| commit | 9477e369e9393da843c30f2d31e86484ca7e0b1c (patch) | |
| tree | f4510536158766343b2b3d030aac11cad0cf3bd8 /docs/tutorials | |
| parent | 05a1b4a37df7e855747f66174a472b0de3ce1c9e (diff) | |
| download | pyramid-9477e369e9393da843c30f2d31e86484ca7e0b1c.tar.gz pyramid-9477e369e9393da843c30f2d31e86484ca7e0b1c.tar.bz2 pyramid-9477e369e9393da843c30f2d31e86484ca7e0b1c.zip | |
use assertEqual
Diffstat (limited to 'docs/tutorials')
| -rw-r--r-- | docs/tutorials/wiki2/src/tests/tutorial/tests.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/tutorials/wiki2/src/tests/tutorial/tests.py b/docs/tutorials/wiki2/src/tests/tutorial/tests.py index 3e72bf05c..82f6853bc 100644 --- a/docs/tutorials/wiki2/src/tests/tutorial/tests.py +++ b/docs/tutorials/wiki2/src/tests/tutorial/tests.py @@ -204,7 +204,7 @@ class FunctionalTests(unittest.TestCase): def test_root(self): res = self.testapp.get('/', status=302) - self.assertTrue(res.location, 'http://localhost/FrontPage') + self.assertEqual(res.location, 'http://localhost/FrontPage') def test_FrontPage(self): res = self.testapp.get('/FrontPage', status=200) @@ -215,7 +215,7 @@ class FunctionalTests(unittest.TestCase): def test_successful_log_in(self): res = self.testapp.get(self.viewer_login, status=302) - self.assertTrue(res.location == 'http://localhost/FrontPage') + self.assertEqual(res.location, 'http://localhost/FrontPage') def test_failed_log_in(self): res = self.testapp.get(self.viewer_wrong_login, status=200) |
