Move tests to testfile

0.3.0.dev
Richard Harding 12 years ago
parent 6abc6f7ef2
commit edc0e4d4c6

@ -124,3 +124,18 @@ class TestFindBaseUrl(unittest.TestCase):
)
]
self._run_urls(specs)
def test_short(self):
specs = [
(
'http://foo.com/en/1234567890',
'http://foo.com/1234567890',
'short segment should be stripped'
),
(
'http://foo.com/en/de/1234567890',
'http://foo.com/en/1234567890',
'short segment should be stripped'
)
]
self._run_urls(specs)

Loading…
Cancel
Save