Skip to content

Commit

Permalink
- Travis fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
afabiani committed Jun 3, 2019
1 parent aca042e commit 45e35a0
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions geonode/security/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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:
Expand Down

0 comments on commit 45e35a0

Please sign in to comment.