(self)
| 315 | |
| 316 | class TestTrailingSlashRemoved(TestCase): |
| 317 | def setUp(self): |
| 318 | class NoteViewSet(viewsets.ModelViewSet): |
| 319 | queryset = RouterTestModel.objects.all() |
| 320 | |
| 321 | self.router = SimpleRouter(trailing_slash=False) |
| 322 | self.router.register(r'notes', NoteViewSet) |
| 323 | self.urls = self.router.urls |
| 324 | |
| 325 | def test_urls_can_have_trailing_slash_removed(self): |
| 326 | expected = ['^notes$', '^notes/(?P<pk>[^/.]+)$'] |
nothing calls this directly
no test coverage detected