ProfileTest

Qualified name: intranet.apps.users.tests.ProfileTest

class intranet.apps.users.tests.ProfileTest(methodName='runTest')[source]

Bases: IonTestCase

Methods

make_token

setUp

test_get_profile_api

test_get_profile_picture_api

test_privacy_options

test_profile_view

test_profile_view_administrator_row

The Administrator row always shows for staff viewers, blank when the user has none.

test_subschools_view

Addresses come from each username's account, or from an address given outright.

test_subschools_view_last_updated

The configured last updated date is shown at the bottom of the page.

test_subschools_view_requires_login

test_subschools_view_username_must_match_exactly

A username whose case differs from the account is not matched, and is logged.

Attributes

test_profile_view_administrator_row() None[source]

The Administrator row always shows for staff viewers, blank when the user has none.

test_subschools_view() None[source]

Addresses come from each username’s account, or from an address given outright.

test_subschools_view_last_updated() None[source]

The configured last updated date is shown at the bottom of the page.

test_subschools_view_username_must_match_exactly() None[source]

A username whose case differs from the account is not matched, and is logged.