Skip to content

Commit

Permalink
- fix test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
afabiani committed Oct 26, 2018
1 parent b77962a commit 34ac634
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions geonode/security/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,11 +127,11 @@ def test_set_bulk_permissions(self):
# Check GeoFence Rules have been correctly created
geofence_rules_count = get_geofence_rules_count()
_log("1. geofence_rules_count: %s " % geofence_rules_count)
self.assertEquals(geofence_rules_count, 8)
self.assertEquals(geofence_rules_count, 6)
set_geofence_all(test_perm_layer)
geofence_rules_count = get_geofence_rules_count()
_log("2. geofence_rules_count: %s " % geofence_rules_count)
self.assertEquals(geofence_rules_count, 9)
self.assertEquals(geofence_rules_count, 7)

self.client.logout()

Expand All @@ -147,7 +147,7 @@ def test_set_bulk_permissions(self):
# Check GeoFence Rules have been correctly created
geofence_rules_count = get_geofence_rules_count()
_log("4. geofence_rules_count: %s " % geofence_rules_count)
self.assertEquals(geofence_rules_count, 10)
self.assertEquals(geofence_rules_count, 8)

# Validate maximum priority
geofence_rules_highest_priority = get_highest_priority()
Expand Down Expand Up @@ -220,7 +220,7 @@ def test_perm_specs_synchronization(self):
layer.set_permissions(perm_spec)
geofence_rules_count = get_geofence_rules_count()
_log("2. geofence_rules_count: %s " % geofence_rules_count)
self.assertEquals(geofence_rules_count, 4)
self.assertEquals(geofence_rules_count, 3)

perm_spec = {'users': {"admin": ['change_layer_data']}}
layer.set_permissions(perm_spec)
Expand All @@ -232,7 +232,7 @@ def test_perm_specs_synchronization(self):
layer.set_permissions(perm_spec)
geofence_rules_count = get_geofence_rules_count()
_log("4. geofence_rules_count: %s " % geofence_rules_count)
self.assertEquals(geofence_rules_count, 4)
self.assertEquals(geofence_rules_count, 3)

perm_spec = {'groups': {'bar': ['change_resourcebase']}}
layer.set_permissions(perm_spec)
Expand Down

0 comments on commit 34ac634

Please sign in to comment.