diff options
| author | Tom Lazar <tomster@pyfidelity.com> | 2013-08-17 15:16:16 +0200 |
|---|---|---|
| committer | Tom Lazar <tomster@pyfidelity.com> | 2013-08-17 15:16:16 +0200 |
| commit | df413c8308a99612e247469300aeb28544041f82 (patch) | |
| tree | 8d1193c054c4142b59c46b41d50f85340302a8b7 | |
| parent | edbc1dd142564a654fdbc8f7e13ddf496bc73950 (diff) | |
| download | pyramid-df413c8308a99612e247469300aeb28544041f82.tar.gz pyramid-df413c8308a99612e247469300aeb28544041f82.tar.bz2 pyramid-df413c8308a99612e247469300aeb28544041f82.zip | |
document the behavior for ``route_path``
| -rw-r--r-- | pyramid/tests/test_url.py | 8 |
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 |
