geonode.groups.tests

Attributes

logger

Classes

GroupsSmokeTest

Functions

_log(msg, *args)

Module Contents

geonode.groups.tests.logger[source]
geonode.groups.tests._log(msg, *args)[source]
class geonode.groups.tests.GroupsSmokeTest[source]

Bases: geonode.tests.base.GeoNodeBaseTestSupport

fixtures = ['initial_data.json', 'group_test_data.json', 'default_oauth_apps.json'][source]
classmethod setUpClass()[source]
classmethod tearDownClass()[source]
setUp()[source]
test_registered_group_exists()[source]

Ensures that a default group and grouprofile ‘registered-users’ has been created at initialization time.

test_users_group_list_view()[source]
  1. Ensures that a superuser can see the whole group list.

  2. Ensures that a user can see only public/public-invite groups.

  3. Ensures that a user belonging to a private group, can see it.

test_group_permissions_extend_to_user()[source]

Ensures that when a user is in a group, the group permissions extend to the user.

test_group_resource()[source]

Tests the resources method on a Group object.

test_perms_info()[source]

Tests the perms_info function (which passes permissions to the response context).

test_resource_permissions()[source]

Tests that the client can get and set group permissions through the test_resource_permissions view.

test_create_new_group()[source]

Tests creating a group through the group_create route.

test_delete_group_view()[source]

Tests deleting a group through the group_delete route.

test_delete_group_view_no_perms()[source]

Tests deleting a group through the group_delete with a non-manager.

test_groupmember_manager()[source]

Tests the get_managers method.

test_public_pages_render()[source]

Verify pages that do not require login load without internal error

test_protected_pages_render()[source]

Verify pages that require login load without internal error

test_group_is_member()[source]

Tests checking group membership

test_group_add_member()[source]

Tests adding a user to a group

test_group_promote_demote_member()[source]

Tests promoting a member to manager, demoting to member

test_profile_is_member_of_group()[source]

Tests profile is_member_of_group property

test_group_remove_member()[source]

Tests removing a user from a group

test_group_logo_is_present_on_list_view()[source]

Verify that a group’s logo is rendered on list view.

test_group_logo_is_not_present_on_list_view()[source]

Verify that no logo exists in list view when a group doesn’t have one.

test_group_activity_pages_render()[source]

Verify Activity List pages

test_api()[source]
test_group_categories_list()[source]
test_group_categories_add()[source]