hawat.blueprints.groups.test package

Unit tests for hawat.blueprints.groups.

class hawat.blueprints.groups.test.GroupsAddRemRejMemberTestCase(methodName='runTest')[source]

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

Class for testing groups.add_member, groups.reject_member and groups.remove_member 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.groups.test.GroupsCreateTestCase(methodName='runTest')[source]

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

Class for testing groups.create endpoint.

group_data_fixture = [('name', 'TEST_GROUP'), ('description', 'Test group for unit testing purposes.'), ('enabled', True), ('managed', True)]
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.groups.test.GroupsDeleteTestCase(methodName='runTest')[source]

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

Class for testing groups.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.groups.test.GroupsEnableDisableTestCase(methodName='runTest')[source]

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

Class for testing groups.enable and groups.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.groups.test.GroupsListTestCase(methodName='runTest')[source]

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

Class for testing groups.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.groups.test.GroupsShowTestCase(methodName='runTest')[source]

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

Base class for testing groups.show and groups.show_by_name endpoints.

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.groups.test.GroupsUpdateTestCase(methodName='runTest')[source]

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

Class for testing groups.update endpoint.

test_01_as_user(*args, **kwargs)
test_04_as_developer(*args, **kwargs)
test_05_as_maintainer(*args, **kwargs)
test_06_as_admin(*args, **kwargs)