From df413c8308a99612e247469300aeb28544041f82 Mon Sep 17 00:00:00 2001 From: Tom Lazar Date: Sat, 17 Aug 2013 15:16:16 +0200 Subject: document the behavior for ``route_path`` --- pyramid/tests/test_url.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pyramid/tests/test_url.py b/pyramid/tests/test_url.py index 197dfb3eb..0e006f447 100644 --- a/pyramid/tests/test_url.py +++ b/pyramid/tests/test_url.py @@ -1070,6 +1070,14 @@ class Test_external_static_url_integration(unittest.TestCase): 'http://fakeme.com/path/bar') + def test_generate_external_url_route_path(self): + self.config.add_route('acme', 'https://acme.org/path/{foo}') + request = self._makeRequest() + request.registry = self.config.registry + self.assertEqual(request.route_path('acme', foo='bar'), + '/path/bar') + + class DummyContext(object): def __init__(self, next=None): self.next = next -- cgit v1.2.3