one.tests.remote.test_remote

Unit tests for the one.remote package.

Classes

TestBase

Tests for the one.remote.base module.

TestGlobus

Tests for the one.remote.globus module.

TestGlobusClient

Tests for the GlobusClient class.

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

Bases: TestCase

Tests for the one.remote.base module.

path_mock = None

The temporary location of remote parameters file.

Type:

tempfile.TemporaryDirectory

tempdir = 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_load_client_params()[source]

Tests for one.remote.base.load_client_params function.

test_save_client_params()[source]

Tests for one.remote.base.save_client_params function.

test_repo_from_alyx()[source]

Test for DownloadClient.repo_from_alyx method.

tearDown() None[source]

Hook method for deconstructing the test fixture after testing it.

classmethod tearDownClass() None[source]

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

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

Bases: TestCase

Tests for the one.remote.globus module.

path_mock = None

The temporary location of remote parameters file.

Type:

tempfile.TemporaryDirectory

tempdir = 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_setup(_)[source]

Tests for one.remote.globus.setup function.

test_as_globus_path()[source]

Tests for one.remote.globus.as_globus_path.

test_get_local_endpoint_id()[source]

Test for one.remote.globus.get_local_endpoint_id function.

test_get_local_endpoint_paths()[source]

Tests for one.remote.globus.get_local_endpoint_paths function.

test_get_lab_from_endpoint_id()[source]

Tests for one.remote.globus.get_lab_from_endpoint_id function.

test_create_globus_client(globus_mock)[source]

Tests for one.remote.globus.create_globus_client function.

tearDown() None[source]

Hook method for deconstructing the test fixture after testing it.

classmethod tearDownClass() None[source]

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

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

Bases: TestCase

Tests for the GlobusClient class.

globus_sdk_mock = None
setUp(_) None[source]

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

test_constructor()[source]

Test for Globus.__init__ method.

test_setup()[source]

Test for Globus.setup static method.

TestGlobus.test_setup tests the setup function. Here we just check it’s called.

test_to_address()[source]

Test for Globus.to_address method.

test_add_endpoint()[source]

Test for Globus.add_endpoint method.

test_fetch_endpoints_from_alyx()[source]

Test for Globus.fetch_endpoints_from_alyx method.

test_endpoint_path()[source]

Test for Globus._endpoint_path method.

test_endpoint_id_root()[source]

Test for Globus._endpoint_id_root method.

test_ls()[source]

Test for Globus.ls method.

test_mv()[source]

Test for Globus.mv and Globus.run_task methods.

test_transfer_data()[source]

Test for Globus.transfer_data method.

test_download_file()[source]

Test for Globus.download_file method.