1
1
mirror of https://github.com/encode/django-rest-framework.git synced 2025-03-21 10:24:21 +03:00

Fix failing test for router with no trailing slash

This commit is contained in:
Tom Christie 2013-08-23 15:18:47 +01:00
parent 005f475c6a
commit 1c935cd3d2

View File

@ -146,7 +146,7 @@ class TestTrailingSlashRemoved(TestCase):
self.urls = self.router.urls
def test_urls_can_have_trailing_slash_removed(self):
expected = ['^notes$', '^notes/(?P<pk>[^/]+)$']
expected = ['^notes$', '^notes/(?P<pk>[^/.]+)$']
for idx in range(len(expected)):
self.assertEqual(expected[idx], self.urls[idx].regex.pattern)