aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test_permissions.py
diff options
context:
space:
mode:
authorTom Christie2014-09-08 14:24:05 +0100
committerTom Christie2014-09-08 14:24:05 +0100
commit21980b800d04a1d82a6003823abfdf4ab80ae979 (patch)
treed17ea3820d51028b03ab2ed63051d17bf4d55448 /tests/test_permissions.py
parentd934824bff21e4a11226af61efba319be227f4f0 (diff)
downloaddjango-rest-framework-21980b800d04a1d82a6003823abfdf4ab80ae979.tar.bz2
More test sorting
Diffstat (limited to 'tests/test_permissions.py')
-rw-r--r--tests/test_permissions.py13
1 files changed, 0 insertions, 13 deletions
diff --git a/tests/test_permissions.py b/tests/test_permissions.py
index d5568c55..ac398f80 100644
--- a/tests/test_permissions.py
+++ b/tests/test_permissions.py
@@ -95,19 +95,6 @@ class ModelPermissionsIntegrationTests(TestCase):
response = instance_view(request, pk=1)
self.assertEqual(response.status_code, status.HTTP_403_FORBIDDEN)
- def test_has_put_as_create_permissions(self):
- # User only has update permissions - should be able to update an entity.
- request = factory.put('/1', {'text': 'foobar'}, format='json',
- HTTP_AUTHORIZATION=self.updateonly_credentials)
- response = instance_view(request, pk='1')
- self.assertEqual(response.status_code, status.HTTP_200_OK)
-
- # But if PUTing to a new entity, permission should be denied.
- request = factory.put('/2', {'text': 'foobar'}, format='json',
- HTTP_AUTHORIZATION=self.updateonly_credentials)
- response = instance_view(request, pk='2')
- self.assertEqual(response.status_code, status.HTTP_403_FORBIDDEN)
-
# def test_options_permitted(self):
# request = factory.options(
# '/',