diff options
Diffstat (limited to 'repoze/bfg/tests')
| -rw-r--r-- | repoze/bfg/tests/test_configuration.py | 2 | ||||
| -rw-r--r-- | repoze/bfg/tests/test_static.py | 2 | ||||
| -rw-r--r-- | repoze/bfg/tests/test_zcml.py | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/repoze/bfg/tests/test_configuration.py b/repoze/bfg/tests/test_configuration.py index be9cd942c..5c677fdcd 100644 --- a/repoze/bfg/tests/test_configuration.py +++ b/repoze/bfg/tests/test_configuration.py @@ -1970,7 +1970,7 @@ class ConfiguratorTests(unittest.TestCase): config = self._makeOne() config.add_static_view('static', 'fixtures/static') request_type = self._getRouteRequestIface(config, 'static') - route = self._assertRoute(config, 'static', 'static*subpath') + route = self._assertRoute(config, 'static', 'static/*subpath') self.assertEqual(route.factory.__class__, type(lambda x: x)) iface = implementedBy(StaticURLInfo) wrapped = config.registry.adapters.lookup( 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) 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] |
