diff options
| author | Alex Burgel | 2013-06-16 12:51:33 -0400 |
|---|---|---|
| committer | Alex Burgel | 2013-07-15 17:59:36 -0400 |
| commit | f02274307826ebf98998e502fecca171bb0de696 (patch) | |
| tree | 1f5149b77ad6c512ff1f4d11ad94d63c5583fe92 | |
| parent | 8d521c068a254cef604df1f15690275dca986778 (diff) | |
| download | django-rest-framework-f02274307826ebf98998e502fecca171bb0de696.tar.bz2 | |
Rename router collection test case
| -rw-r--r-- | rest_framework/tests/test_routers.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/rest_framework/tests/test_routers.py b/rest_framework/tests/test_routers.py index 60f150d2..e0a7e292 100644 --- a/rest_framework/tests/test_routers.py +++ b/rest_framework/tests/test_routers.py @@ -216,7 +216,7 @@ class TestActionAppliedToExistingRoute(TestCase): self.router.urls -class StaticAndDynamicViewSet(viewsets.ViewSet): +class CollectionAndDynamicViewSet(viewsets.ViewSet): def list(self, request, *args, **kwargs): return Response({'method': 'list'}) @@ -237,12 +237,12 @@ class StaticAndDynamicViewSet(viewsets.ViewSet): return Response({'method': 'link2'}) -class TestStaticAndDynamicRouter(TestCase): +class TestCollectionAndDynamicRouter(TestCase): def setUp(self): self.router = SimpleRouter() def test_link_and_action_decorator(self): - routes = self.router.get_routes(StaticAndDynamicViewSet) + routes = self.router.get_routes(CollectionAndDynamicViewSet) decorator_routes = [r for r in routes if not (r.name.endswith('-list') or r.name.endswith('-detail'))] # Make sure all these endpoints exist and none have been clobbered for i, endpoint in enumerate(['collection_action', 'collection_link', 'dynamic_action', 'dynamic_link']): |
