one.tests.alf.test_alf_path

Unit tests for the one.alf.path module.

Classes

TestALFGet

Tests for path extraction functions

TestALFParse

Tests for ALF parsing methods

TestALFPath

Tests for ALFPath class methods.

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

Bases: TestCase

Tests for ALF parsing methods

test_filename_parts()[source]

Test for one.alf.path.filename_parts

test_rel_path_parts()[source]

Test for one.alf.path.rel_path_parts

test_session_path_parts()[source]

Test for one.alf.path.session_path_parts

test_folder_parts()[source]

Test for one.alf.path.folder_parts

test_full_path_parts()[source]

Test for one.alf.path.full_path_parts

test_isdatetime()[source]

Test for one.alf.path._isdatetime

test_add_uuid()[source]

Test for one.alf.path.add_uuid_string.

test_remove_uuid()[source]

Test for one.alf.path.remove_uuid_string.

test_padded_sequence()[source]

Test for one.alf.path.padded_sequence.

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

Bases: TestCase

Tests for path extraction functions

test_get_session_folder()[source]

Test for one.alf.path.get_session_folder

test_get_alf_path()[source]

Test for one.alf.path.get_alf_path

test_without_revision()[source]

Test for one.alf.path.without_revision function.

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

Bases: TestCase

Tests for ALFPath class methods.

setUp()[source]

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

test_is_valid_alf()[source]

Test for PureALFPath.is_valid_alf and ALFPath.is_valid_alf methods.

test_is_dataset()[source]

Test for PureALFPath.is_dataset method.

test_session_path()[source]

Test for PureALFPath.session_path method.

test_without_revision()[source]

Test for PureALFPath.without_revision method.

test_with_revision()[source]

Test for PureALFPath.with_revision method.

test_with_padded_sequence()[source]

Test for PureALFPath.with_padded_sequence method.

test_relative_to_session()[source]

Test for PureALFPath.relative_to_session method.

test_session_path_short()[source]

Test for PureALFPath.session_path_short method.

test_without_lab()[source]

Test for PureALFPath.without_lab method.

test_relative_to_lab()[source]

Test ALFPath.relative_to_lab method.

test_without_uuid()[source]

Test for PureALFPath.without_uuid method.

test_with_uuid()[source]

Test for PureALFPath.with_uuid method.

test_is_session_path()[source]

Test PureALFPath and ALFPath.is_session_path methods.

test_iter_datasets()[source]

Test ALFPath.iter_datasets method.

test_with_object()[source]

Test for PureALFPath.with_object method.

test_with_namespace()[source]

Test for PureALFPath.with_namespace method.

test_with_attribute()[source]

Test for PureALFPath.with_attribute method.

test_with_timescale()[source]

Test for PureALFPath.with_timescale method.

test_with_extra()[source]

Test for PureALFPath.with_extra method.

test_with_extension()[source]

Test for PureALFPath.with_extension method.

test_parts_properties()[source]

Test the PureALFPath ALF dataset part properties.

test_parse_alf_path()[source]

Test PureALFPath.parse_alf_path method.

test_parse_alf_name()[source]

Test PureALFPath.parse_alf_name method.

test_ensure_alf_path()[source]

Test for one.alf.path.ensure_alf_path function.