Unit test suite for Hydra Platform

class test_network.NetworkTest(methodName='runTest')

Test for network-based functionality

test_add_nodes()

Test add new nodes to network

test_consistency_of_update()

Test to ensure that updating a network which has not changed does not cause any changes to the network. Procedure: 1 Create a network. 2 Immediately update the network without changing it. 3 Check that the original network and the updated network are identical.

test_get_extents()

Extents test: Test that the min X, max X, min Y and max Y of a network are retrieved correctly.

test_get_network()

Test for the potentially likely case of creating a network with two scenarios, then querying for the network without data to identify the scenarios, then querying for the network with data but in only a select few scenarios.

test_get_network_with_template()

Test for the potentially likely case of creating a network with two scenarios, then querying for the network without data to identify the scenarios, then querying for the network with data but in only a select few scenarios.

test_get_resources_of_type()

Test for the retrieval of all the resources of a specified type within a network.

class test_data.TimeSeriesTest(methodName='runTest')

Test for timeseries-based functionality

create_arbitrary_timeseries()

Create a timeseries which has relative timesteps: 1, 2, 3 as opposed to timestamps

create_relative_timeseries()

Create a timeseries which has relative timesteps: 1, 2, 3 as opposed to timestamps

create_seasonal_timeseries()

Create a timeseries which has relative timesteps: 1, 2, 3 as opposed to timestamps

test_relative_timeseries()

Test for relative timeseries for example, x number of hours from hour 0.

class test_plugins.PluginsTest(methodName='runTest')

Test which runs a number of plugins

class test_plugins.ServerPluginsTest(methodName='runTest')

Tests for server-side plugins.

Call the advanced dataset retrieval function.

class test_units.UnitsTest(methodName='runTest')

Test for working with units.

class test_attributes.AttributeTest(methodName='runTest')

Test for attribute-based functionality

class test_attributes.ResourceAttributeCollectionTest(methodName='runTest')

Test for attribute-based functionality

class test_image.ImageTest(methodName='runTest')

Tests for the basic image storage in hydra

class test_notes.NoteTest(methodName='runTest')

Test for notes in Hydra

test_add_note()
class test_project.ProjectTest(methodName='runTest')

Test for working with projects in Hydra

class test_templates.TemplatesTest(methodName='runTest')

Test for templates

test_type_compatibility()

Check function that thests whether two types are compatible – the overlapping attributes are specified with the same unit. Change the unit associated with an attribute for types in two idencical templates, and test. There should be 1 error returned. THen test comparison of identical types. No errors should return.

class test_users.UsersTest(methodName='runTest')

Test for working with units

class test_concurrency.ConcurrencyTest(methodName='runTest')

Test for concurrency in Hydra

class test_load.NetworkTest(methodName='runTest')

Test for large loads (adding a large network).

class test_permissions.LoginTest(methodName='runTest')

Test for logins & logouts etc.

class test_rules.RuleTest(methodName='runTest')

Test for rules

class test_timeseries.TimeSeriesTest(methodName='runTest')

Test for working with timeseries