diff options
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) |
