diff options
| author | Tom Christie | 2013-08-23 15:18:47 +0100 |
|---|---|---|
| committer | Tom Christie | 2013-08-23 15:18:47 +0100 |
| commit | 1c935cd3d271efd06f1621c9dddb9e1cd0333e20 (patch) | |
| tree | 8b9eb92170cf868880a824e73cd3345f203f6d82 | |
| parent | 005f475c6af023cc7c75cf38d3a89e22638e5d84 (diff) | |
| download | django-rest-framework-1c935cd3d271efd06f1621c9dddb9e1cd0333e20.tar.bz2 | |
Fix failing test for router with no trailing slash
| -rw-r--r-- | rest_framework/tests/test_routers.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rest_framework/tests/test_routers.py b/rest_framework/tests/test_routers.py index 5fcccb74..e723f7d4 100644 --- a/rest_framework/tests/test_routers.py +++ b/rest_framework/tests/test_routers.py @@ -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) |
