mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-04 12:30:11 +03:00
Fix tests for django 1.3.7 and 1.4.10
This commit is contained in:
parent
da40aacb3b
commit
024baf1765
|
@ -202,7 +202,7 @@ class TestManyToManyHyperlinkedView(TestCase):
|
||||||
Scoped GET requests to ListCreateAPIView should return list of objects
|
Scoped GET requests to ListCreateAPIView should return list of objects
|
||||||
with scoped url properties.
|
with scoped url properties.
|
||||||
"""
|
"""
|
||||||
request = factory.get('scope/manytomany/')
|
request = factory.get('/scope/manytomany/')
|
||||||
response = self.list_view(request, scope='scope')
|
response = self.list_view(request, scope='scope')
|
||||||
self.assertEqual(response.status_code, status.HTTP_200_OK)
|
self.assertEqual(response.status_code, status.HTTP_200_OK)
|
||||||
self.assertEqual(response.data, self.data_scoped)
|
self.assertEqual(response.data, self.data_scoped)
|
||||||
|
@ -221,7 +221,7 @@ class TestManyToManyHyperlinkedView(TestCase):
|
||||||
Scoped GET requests to ListCreateAPIView should return list of objects
|
Scoped GET requests to ListCreateAPIView should return list of objects
|
||||||
with scoped url properties
|
with scoped url properties
|
||||||
"""
|
"""
|
||||||
request = factory.get('scope/manytomany/1/')
|
request = factory.get('/scope/manytomany/1/')
|
||||||
response = self.detail_view(request, pk=1, scope='scope')
|
response = self.detail_view(request, pk=1, scope='scope')
|
||||||
self.assertEqual(response.status_code, status.HTTP_200_OK)
|
self.assertEqual(response.status_code, status.HTTP_200_OK)
|
||||||
self.assertEqual(response.data, self.data_scoped[0])
|
self.assertEqual(response.data, self.data_scoped[0])
|
||||||
|
|
Loading…
Reference in New Issue
Block a user