hawat.blueprints.users.test package

Unit tests for hawat.blueprints.users.

class hawat.blueprints.users.test.UsersAddRemRejMembershipTestCase(methodName='runTest')[source]

Bases: hawat.test.runner.TestRunnerMixin, vial.test.VialTestCase

Class for testing users.add_membership, users.reject_membership and users.remove_membership endpoint.

test_01_as_user(*args, **kwargs)
test_02_as_developer(*args, **kwargs)
test_03_as_maintainer(*args, **kwargs)
test_04_as_admin(*args, **kwargs)
class hawat.blueprints.users.test.UsersCreateTestCase(methodName='runTest')[source]

Bases: hawat.blueprints.users.test.utils.UsersTestCaseMixin, hawat.test.runner.TestRunnerMixin, vial.test.ItemCreateVialTestCase

Class for testing users.create endpoint.

test_01_as_user(*args, **kwargs)
test_02_as_developer(*args, **kwargs)
test_03_as_maintainer(*args, **kwargs)
test_04_as_admin(*args, **kwargs)
user_data_fixture = [('login', 'test'), ('fullname', 'Test User'), ('email', 'test.user@domain.org'), ('organization', 'TEST, org.'), ('enabled', True)]
class hawat.blueprints.users.test.UsersDeleteTestCase(methodName='runTest')[source]

Bases: hawat.blueprints.users.test.utils.UsersTestCaseMixin, hawat.test.runner.TestRunnerMixin, vial.test.VialTestCase

Class for testing users.delete endpoint.

test_01_as_user(*args, **kwargs)
test_02_as_developer(*args, **kwargs)
test_03_as_maintainer(*args, **kwargs)
test_04_as_admin(*args, **kwargs)
class hawat.blueprints.users.test.UsersEnableDisableTestCase(methodName='runTest')[source]

Bases: hawat.blueprints.users.test.utils.UsersTestCaseMixin, hawat.test.runner.TestRunnerMixin, vial.test.VialTestCase

Class for testing users.enable and users.disable endpoint.

test_01_as_user(*args, **kwargs)
test_02_as_developer(*args, **kwargs)
test_03_as_maintainer(*args, **kwargs)
test_04_as_admin(*args, **kwargs)
class hawat.blueprints.users.test.UsersListTestCase(methodName='runTest')[source]

Bases: hawat.blueprints.users.test.utils.UsersTestCaseMixin, hawat.test.runner.TestRunnerMixin, vial.test.VialTestCase

Class for testing users.list endpoint.

test_01_as_user(*args, **kwargs)
test_02_as_developer(*args, **kwargs)
test_03_as_maintainer(*args, **kwargs)
test_04_as_admin(*args, **kwargs)
class hawat.blueprints.users.test.UsersShowOtherTestCase(methodName='runTest')[source]

Bases: hawat.blueprints.users.test.utils.UsersTestCaseMixin, hawat.test.runner.TestRunnerMixin, vial.test.VialTestCase

Class for testing users.show endpoint: access to other user`s accounts.

test_01_as_user_developer(*args, **kwargs)
test_02_as_user_maintainer(*args, **kwargs)
test_03_as_user_admin(*args, **kwargs)
test_04_as_developer_user(*args, **kwargs)
test_05_as_developer_maintainer(*args, **kwargs)
test_06_as_developer_admin(*args, **kwargs)
test_07_as_maintainer_user(*args, **kwargs)
test_08_as_maintainer_developer(*args, **kwargs)
test_09_as_maintainer_admin(*args, **kwargs)
test_10_as_admin_user(*args, **kwargs)
test_11_as_admin_developer(*args, **kwargs)
test_12_as_admin_maintainer(*args, **kwargs)
class hawat.blueprints.users.test.UsersShowOwnTestCase(methodName='runTest')[source]

Bases: hawat.blueprints.users.test.utils.UsersTestCaseMixin, hawat.test.runner.TestRunnerMixin, vial.test.VialTestCase

Class for testing users.show endpoint: access to user`s own accounts.

Each user must be able to access his own account.

test_01_as_user(*args, **kwargs)
test_02_as_developer(*args, **kwargs)
test_03_as_maintainer(*args, **kwargs)
test_04_as_admin(*args, **kwargs)
class hawat.blueprints.users.test.UsersUpdateOtherTestCase(methodName='runTest')[source]

Bases: hawat.blueprints.users.test.utils.UsersTestCaseMixin, hawat.test.runner.TestRunnerMixin, vial.test.VialTestCase

Class for testing users.update endpoint: access to other user`s accounts.

test_01_as_user_developer(*args, **kwargs)
test_02_as_user_maintainer(*args, **kwargs)
test_03_as_user_admin(*args, **kwargs)
test_04_as_developer_user(*args, **kwargs)
test_05_as_developer_maintainer(*args, **kwargs)
test_06_as_developer_admin(*args, **kwargs)
test_07_as_maintainer_user(*args, **kwargs)
test_08_as_maintainer_developer(*args, **kwargs)
test_09_as_maintainer_admin(*args, **kwargs)
test_10_as_admin_user(*args, **kwargs)
test_11_as_admin_developer(*args, **kwargs)
test_12_as_admin_maintainer(*args, **kwargs)
class hawat.blueprints.users.test.UsersUpdateOwnTestCase(methodName='runTest')[source]

Bases: hawat.blueprints.users.test.utils.UsersTestCaseMixin, hawat.test.runner.TestRunnerMixin, vial.test.VialTestCase

Class for testing users.update endpoint: access to user`s own accounts.

test_01_as_user(*args, **kwargs)
test_02_as_developer(*args, **kwargs)
test_03_as_maintainer(*args, **kwargs)
test_04_as_admin(*args, **kwargs)