geonode.people.tests ==================== .. py:module:: geonode.people.tests Classes ------- .. autoapisummary:: geonode.people.tests.PeopleAndProfileTests Module Contents --------------- .. py:class:: PeopleAndProfileTests Bases: :py:obj:`geonode.tests.base.GeoNodeBaseTestSupport` .. py:attribute:: fixtures :value: ['initial_data.json', 'group_test_data.json', 'default_oauth_apps.json'] .. py:method:: setUpClass() :classmethod: .. py:method:: tearDownClass() :classmethod: .. py:method:: setUp() .. py:method:: test_redirect_on_get_request() Test that an immediate redirect occurs back to the admin page of origin when no IDS are supplied .. py:method:: test_admin_only_access() Test that only admin users can access the routes .. py:method:: test_invalid_form_return_the_expected_message(form_error, form_valid) The form should retrun a pre-defined message if the dataset is not part of the choices .. py:method:: test_set_unset_user_dataset_permissions() Test that user permissions are set for layers .. py:method:: test_set_unset_group_dataset_permissions() Test that group permissions are set for layers .. py:method:: test_unset_group_dataset_perms() Test that group permissions are unset for layers .. py:method:: test_forgot_username() .. py:method:: test_get_profile() .. py:method:: _facebook_extractor_init() .. py:method:: test_extract_area() .. py:method:: test_extract_city() .. py:method:: test_extract_country() .. py:method:: test_extract_delivery() .. py:method:: test_fb_extract_email() .. py:method:: test_extract_fax() .. py:method:: test_fb_extract_first_name() .. py:method:: test_fb_extract_last_name() .. py:method:: test_extract_organization() .. py:method:: test_extract_position() .. py:method:: test_extract_profile() .. py:method:: test_extract_voice() .. py:method:: test_extract_zipcode() .. py:method:: _linkedin_extractor_init() .. py:method:: test_ln_extract_email() .. py:method:: test_ln_extract_first_name() .. py:method:: test_ln_extract_last_name() .. py:method:: test_password_validators() .. py:method:: test_new_user_is_assigned_automatically_to_contributors() By default the contributors group is assigned to each new user .. py:method:: test_new_user_is_no_assigned_automatically_to_contributors_if_disabled() If AUTO_ASSIGN_REGISTERED_MEMBERS_TO_CONTRIBUTORS is false, each new user is not automatically assinged to the contributors group