summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pyramid/tests/test_url.py8
1 files changed, 8 insertions, 0 deletions
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