diff tests/test_uriutil.py @ 710:e85f29b28b84

internal: Remove unused piece of code.
author Ludovic Chabant <ludovic@chabant.com>
date Thu, 26 May 2016 19:46:28 -0700
parents 4284c673bb91
children
line wrap: on
line diff
--- a/tests/test_uriutil.py	Thu May 19 22:11:27 2016 -0700
+++ b/tests/test_uriutil.py	Thu May 26 19:46:28 2016 -0700
@@ -1,29 +1,6 @@
 import mock
 import pytest
-from piecrust.uriutil import UriInfo, parse_uri, split_sub_uri
-
-
-@pytest.mark.parametrize('routes, uri, expected', [
-        ({}, '/foo', None),
-        (
-            {'/articles/%slug%': {'source': 'dummy'}},
-            '/articles/foo',
-            UriInfo('', 'dummy', {'slug': 'foo'})),
-        (
-            {'/foo/%bar%': {'source': 'foo'},
-                '/other/%one%-%two%': {'source': 'other'}},
-            '/other/some-thing',
-            UriInfo('', 'other', {'one': 'some', 'two': 'thing'}))
-    ])
-def test_parse_uri(routes, uri, expected):
-    if expected is not None:
-        expected.uri = uri
-    for pattern, args in routes.items():
-        if 'taxonomy' not in args:
-            args['taxonomy'] = None
-
-    actual = parse_uri(routes, uri)
-    assert actual == expected
+from piecrust.uriutil import split_sub_uri
 
 
 @pytest.mark.parametrize('uri, expected, pretty_urls', [