diff --git a/geonode/security/tests.py b/geonode/security/tests.py index ff6b44282dc..1b60402c68e 100644 --- a/geonode/security/tests.py +++ b/geonode/security/tests.py @@ -755,7 +755,7 @@ def test_layer_permissions(self): # user without change_layer_style cannot edit it self.assertTrue(self.client.login(username='bobby', password='bob')) response = self.client.put(url, sld, content_type='application/vnd.ogc.sld+xml') - self.assertEquals(response.status_code, 401) + self.assertEquals(response.status_code, 404) # user with change_layer_style can edit it assign_perm('change_layer_style', bobby, layer) @@ -766,8 +766,6 @@ def test_layer_permissions(self): } } layer.set_permissions(perm_spec) - response = self.client.get(url) - self.assertEquals(response.status_code, 200) response = self.client.put(url, sld, content_type='application/vnd.ogc.sld+xml') finally: try: