diff options
| author | Chris McDonough <chrism@agendaless.com> | 2010-09-05 23:39:30 +0000 |
|---|---|---|
| committer | Chris McDonough <chrism@agendaless.com> | 2010-09-05 23:39:30 +0000 |
| commit | 8deae21c801bc05c6464a6eead3df449ed1fe52d (patch) | |
| tree | 821fc7224a8764373a16be5e6ea59872e8a2d333 /repoze/bfg/tests/test_zcml.py | |
| parent | d3c39db1c24a603dff710f1f187d435acf6a6752 (diff) | |
| download | pyramid-8deae21c801bc05c6464a6eead3df449ed1fe52d.tar.gz pyramid-8deae21c801bc05c6464a6eead3df449ed1fe52d.tar.bz2 pyramid-8deae21c801bc05c6464a6eead3df449ed1fe52d.zip | |
- The route pattern registered internally for a a local "static view"
(either via the ``static`` ZCML directive or via the
``add_static_view`` method of the configurator) was incorrect. It
was regsistered for e.g. ``static*traverse``, while it should have
been registered for ``static/*traverse``. Symptom: two static views
could not reliably be added to a system when they both shared the
same path prefix (e.g. ``/static`` and ``/static2``).
Diffstat (limited to 'repoze/bfg/tests/test_zcml.py')
| -rw-r--r-- | repoze/bfg/tests/test_zcml.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/repoze/bfg/tests/test_zcml.py b/repoze/bfg/tests/test_zcml.py index d7282551d..799826d1b 100644 --- a/repoze/bfg/tests/test_zcml.py +++ b/repoze/bfg/tests/test_zcml.py @@ -706,7 +706,7 @@ class TestStaticDirective(unittest.TestCase): mapper = reg.getUtility(IRoutesMapper) routes = mapper.get_routes() self.assertEqual(len(routes), 1) - self.assertEqual(routes[0].path, 'name*subpath') + self.assertEqual(routes[0].path, 'name/*subpath') self.assertEqual(routes[0].name, 'name') view_action = actions[1] |
