one.tests.test_registration

Unit tests for the one.registration module.

Classes

TestDatasetTypes

Tests for dataset type validation.

TestRegistrationClient

Test class for RegistrationClient class.

class TestDatasetTypes(methodName='runTest')[source]

Bases: TestCase

Tests for dataset type validation.

test_get_dataset_type()[source]

Test one.registration.get_dataset_type function.

class TestRegistrationClient(methodName='runTest')[source]

Bases: TestCase

Test class for RegistrationClient class.

one = None
subject = None
temp_dir = None
tag = None
classmethod setUpClass() None[source]

Hook method for setting up class fixture before running tests in the class.

setUp() None[source]

Hook method for setting up the test fixture before exercising it.

test_water_administration()[source]

Test for RegistrationClient.register_water_administration.

test_register_weight()[source]

Test for RegistrationClient.register_weight.

test_ensure_ISO8601()[source]

Test for RegistrationClient.ensure_ISO8601.

test_exists()[source]

Test for RegistrationClient.assert_exists.

test_find_files()[source]

Test for RegistrationClient.find_files.

test_create_new_session()[source]

Test for RegistrationClient.create_new_session.

test_register_session()[source]

Test for RegistrationClient.register_session.

test_create_sessions()[source]

Test for RegistrationClient.create_sessions.

test_prepare_files()[source]

Test for RegistrationClient.prepare_files method.

test_check_protected()[source]

Test for RegistrationClient.check_protected_files method.

test_register_files()[source]

Test for RegistrationClient.register_files.

test_next_revision()[source]

Test RegistrationClient._next_revision method.

test_instantiation()[source]

Test RegistrationClient.__init__ with no args.

classmethod tearDownClass() None[source]

Hook method for deconstructing the class fixture after running all tests in the class.