mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-03 03:50: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
|
||||
with scoped url properties.
|
||||
"""
|
||||
request = factory.get('scope/manytomany/')
|
||||
request = factory.get('/scope/manytomany/')
|
||||
response = self.list_view(request, scope='scope')
|
||||
self.assertEqual(response.status_code, status.HTTP_200_OK)
|
||||
self.assertEqual(response.data, self.data_scoped)
|
||||
|
@ -221,7 +221,7 @@ class TestManyToManyHyperlinkedView(TestCase):
|
|||
Scoped GET requests to ListCreateAPIView should return list of objects
|
||||
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')
|
||||
self.assertEqual(response.status_code, status.HTTP_200_OK)
|
||||
self.assertEqual(response.data, self.data_scoped[0])
|
||||
|
|
Loading…
Reference in New Issue
Block a user