diff options
| author | Chris McDonough <chrism@plope.com> | 2011-09-24 12:58:53 -0400 |
|---|---|---|
| committer | Chris McDonough <chrism@plope.com> | 2011-09-24 12:58:53 -0400 |
| commit | 057caa419750bf55f844616b6493302609471edb (patch) | |
| tree | b7a2828be2ad48f96f685047794c6b92c7d55a7c | |
| parent | 0822146013398357db4e75f26d9f07f5f7af94ad (diff) | |
| download | pyramid-057caa419750bf55f844616b6493302609471edb.tar.gz pyramid-057caa419750bf55f844616b6493302609471edb.tar.bz2 pyramid-057caa419750bf55f844616b6493302609471edb.zip | |
forward compat repr fixes
| -rw-r--r-- | pyramid/tests/test_router.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/pyramid/tests/test_router.py b/pyramid/tests/test_router.py index 35f2e4352..a98018500 100644 --- a/pyramid/tests/test_router.py +++ b/pyramid/tests/test_router.py @@ -269,15 +269,14 @@ class TestRouter(unittest.TestCase): start_response = DummyStartResponse() why = exc_raised(HTTPNotFound, router, environ, start_response) self.assertTrue( - "debug_notfound of url http://localhost:8080/; path_info: '/', " - "context:" in why[0]) + "debug_notfound of url http://localhost:8080/; " in why[0]) self.assertTrue("view_name: '', subpath: []" in why[0]) self.assertTrue('http://localhost:8080' in why[0], why) self.assertEqual(len(logger.messages), 1) message = logger.messages[0] self.assertTrue('of url http://localhost:8080' in message) - self.assertTrue("path_info: '/'" in message) + self.assertTrue("path_info: " in message) self.assertTrue('DummyContext instance at' in message) self.assertTrue("view_name: ''" in message) self.assertTrue("subpath: []" in message) @@ -658,8 +657,7 @@ class TestRouter(unittest.TestCase): "route matched for url http://localhost:8080" "/archives/action1/article1; " "route_name: 'foo', " - "path_info: '/archives/action1/article1', " - "pattern: 'archives/:action/:article', ")) + "path_info: ")) def test_call_route_match_miss_debug_routematch(self): from pyramid.httpexceptions import HTTPNotFound |
