diff options
| author | Randall Leeds <randall@bleeds.info> | 2014-07-10 16:29:29 -0700 |
|---|---|---|
| committer | Randall Leeds <randall@bleeds.info> | 2014-11-11 00:39:16 -0800 |
| commit | 940a7a3e3a254ba3b5db333f2a07ab43f5018d98 (patch) | |
| tree | 2a847cb5572fc91d39e8ed207f22dcc400f57c9e | |
| parent | 7b1d4223db73163f46600cf3d3badf4961dddafb (diff) | |
| download | pyramid-940a7a3e3a254ba3b5db333f2a07ab43f5018d98.tar.gz pyramid-940a7a3e3a254ba3b5db333f2a07ab43f5018d98.tar.bz2 pyramid-940a7a3e3a254ba3b5db333f2a07ab43f5018d98.zip | |
add failing test for package root spec static view
| -rw-r--r-- | pyramid/tests/test_config/test_views.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/pyramid/tests/test_config/test_views.py b/pyramid/tests/test_config/test_views.py index 39b8ba70d..a82f7f257 100644 --- a/pyramid/tests/test_config/test_views.py +++ b/pyramid/tests/test_config/test_views.py @@ -3898,6 +3898,13 @@ class TestStaticURLInfo(unittest.TestCase): ('http://example.com/', 'anotherpackage:path/', None, None)] self._assertRegistrations(config, expected) + def test_add_package_root(self): + inst = self._makeOne() + config = self._makeConfig() + inst.add(config, 'http://example.com', 'package:') + expected = [('http://example.com/', 'package:', None)] + self._assertRegistrations(config, expected) + def test_add_url_withendslash(self): inst = self._makeOne() config = self._makeConfig() |
