diff options
Diffstat (limited to 'repoze/bfg/tests/test_zcml.py')
| -rw-r--r-- | repoze/bfg/tests/test_zcml.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/repoze/bfg/tests/test_zcml.py b/repoze/bfg/tests/test_zcml.py index 608c69f51..4623ea3b1 100644 --- a/repoze/bfg/tests/test_zcml.py +++ b/repoze/bfg/tests/test_zcml.py @@ -499,7 +499,7 @@ class TestStaticDirective(unittest.TestCase): discriminator = route_action['discriminator'] self.assertEqual(discriminator, ('route', 'name', False, None, None, None, None, None)) - route_action['callable']() + route_action['callable'](*route_action['args']) mapper = sm.getUtility(IRoutesMapper) routes = mapper.get_routes() self.assertEqual(len(routes), 1) @@ -649,6 +649,9 @@ class DummyContext: 'args':args} ) + def path(self, path): + return path + def resolve(self, dottedname): return self.resolved |
