(self)
| 300 | |
| 301 | class TestTrailingSlashIncluded(TestCase): |
| 302 | def setUp(self): |
| 303 | class NoteViewSet(viewsets.ModelViewSet): |
| 304 | queryset = RouterTestModel.objects.all() |
| 305 | |
| 306 | self.router = SimpleRouter() |
| 307 | self.router.register(r'notes', NoteViewSet) |
| 308 | self.urls = self.router.urls |
| 309 | |
| 310 | def test_urls_have_trailing_slash_by_default(self): |
| 311 | expected = ['^notes/$', '^notes/(?P<pk>[^/.]+)/$'] |
nothing calls this directly
no test coverage detected