hawat.blueprints.networks.test package

Unit tests for hawat.blueprints.networks.

class hawat.blueprints.networks.test.NetworkTestMixin[source]

Bases: object

Mixin class for network specific tests.

network_get(network_name, with_app_context=False)[source]

Get given network.

network_id(network_type, with_app_context=False)[source]

Get ID of given network.

network_save(network_object, with_app_context=False)[source]

Update given network.

class hawat.blueprints.networks.test.NetworksCreateForTestCase(methodName='runTest')[source]

Bases: hawat.blueprints.networks.test.NetworkTestMixin, hawat.test.runner.TestRunnerMixin, vial.test.ItemCreateVialTestCase

Class for testing networks.createfor endpoint.

network_data_fixture = [('netname', 'TEST_NETWORK'), ('network', '191.168.1.0/24'), ('description', 'Test network for unit testing purposes.')]
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.networks.test.NetworksCreateTestCase(methodName='runTest')[source]

Bases: hawat.blueprints.networks.test.NetworkTestMixin, hawat.test.runner.TestRunnerMixin, vial.test.ItemCreateVialTestCase

Class for testing networks.create endpoint.

network_data_fixture = [('group', 1), ('netname', 'TEST_NETWORK'), ('network', '191.168.1.0/24'), ('description', 'Test network for unit testing purposes.')]
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.networks.test.NetworksDeleteTestCase(methodName='runTest')[source]

Bases: hawat.blueprints.networks.test.NetworkTestMixin, hawat.test.runner.TestRunnerMixin, vial.test.VialTestCase

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

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

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

Bases: hawat.blueprints.networks.test.NetworkTestMixin, hawat.test.runner.TestRunnerMixin, vial.test.VialTestCase

Base class for testing networks.show 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.networks.test.NetworksUpdateTestCase(methodName='runTest')[source]

Bases: hawat.blueprints.networks.test.NetworkTestMixin, hawat.test.runner.TestRunnerMixin, vial.test.VialTestCase

Class for testing networks.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)