summaryrefslogtreecommitdiff
path: root/repoze/bfg/tests/test_static.py
diff options
context:
space:
mode:
authorChris McDonough <chrism@agendaless.com>2010-09-05 23:39:30 +0000
committerChris McDonough <chrism@agendaless.com>2010-09-05 23:39:30 +0000
commit8deae21c801bc05c6464a6eead3df449ed1fe52d (patch)
tree821fc7224a8764373a16be5e6ea59872e8a2d333 /repoze/bfg/tests/test_static.py
parentd3c39db1c24a603dff710f1f187d435acf6a6752 (diff)
downloadpyramid-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_static.py')
-rw-r--r--repoze/bfg/tests/test_static.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/repoze/bfg/tests/test_static.py b/repoze/bfg/tests/test_static.py
index 508db0d90..d9893ab2f 100644
--- a/repoze/bfg/tests/test_static.py
+++ b/repoze/bfg/tests/test_static.py
@@ -311,7 +311,7 @@ class TestStaticURLInfo(unittest.TestCase):
inst.add('view', 'anotherpackage:path', cache_max_age=1)
expected = [('view', 'anotherpackage:path', False)]
self.assertEqual(inst.registrations, expected)
- self.assertEqual(config.arg, ('view', 'view*subpath'))
+ self.assertEqual(config.arg, ('view', 'view/*subpath'))
self.assertEqual(config.kw['_info'], None)
self.assertEqual(config.kw['view_for'], self._getTargetClass())
self.assertEqual(config.kw['factory'](), inst)