diff options
| author | Chris McDonough <chrism@agendaless.com> | 2010-09-07 19:34:20 +0000 |
|---|---|---|
| committer | Chris McDonough <chrism@agendaless.com> | 2010-09-07 19:34:20 +0000 |
| commit | 6b9e366a4d6d0ac6a0424646e3d2ba32850371b8 (patch) | |
| tree | d9be911199a428f6b1cf21e3a4b44ee66ba841ac /repoze/bfg/tests/test_configuration.py | |
| parent | e2a9d52972648109cb9e8b7bd4e8a66c1acd03f1 (diff) | |
| download | pyramid-6b9e366a4d6d0ac6a0424646e3d2ba32850371b8.tar.gz pyramid-6b9e366a4d6d0ac6a0424646e3d2ba32850371b8.tar.bz2 pyramid-6b9e366a4d6d0ac6a0424646e3d2ba32850371b8.zip | |
- Fix a bug in ``repoze.bfg.url.static_url`` URL generation: if two
resource specifications were used to create two separate static
views, but they shared a common prefix, it was possible that
``static_url`` would generate an incorrect URL.
- Fix another bug in ``repoze.bfg.static_url`` URL generation: too
many slashes in generated URL.
Diffstat (limited to 'repoze/bfg/tests/test_configuration.py')
| -rw-r--r-- | repoze/bfg/tests/test_configuration.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/repoze/bfg/tests/test_configuration.py b/repoze/bfg/tests/test_configuration.py index 5c677fdcd..232cbd6bb 100644 --- a/repoze/bfg/tests/test_configuration.py +++ b/repoze/bfg/tests/test_configuration.py @@ -1969,8 +1969,8 @@ class ConfiguratorTests(unittest.TestCase): from repoze.bfg.interfaces import IViewClassifier config = self._makeOne() config.add_static_view('static', 'fixtures/static') - request_type = self._getRouteRequestIface(config, 'static') - route = self._assertRoute(config, 'static', 'static/*subpath') + request_type = self._getRouteRequestIface(config, 'static/') + route = self._assertRoute(config, 'static/', 'static/*subpath') self.assertEqual(route.factory.__class__, type(lambda x: x)) iface = implementedBy(StaticURLInfo) wrapped = config.registry.adapters.lookup( |
