one.tests.remote.test_globus

Classes

TestGlobus

Tests for the one.remote.globus module.

TestGlobusAsync

Asynchronous Globus method tests.

TestGlobusClient

Tests for the GlobusClient 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.

test_remove_token_fields()[source]

Test for one.remote.globus._remove_token_fields function.

test_get_token()[source]

Test for one.remote.globus.get_token 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: _GlobusClientTest

Tests for the GlobusClient class.

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.

test_delete_data()[source]

Test for Globus.delete_data method.

test_globus_headless()[source]

Test for Globus object in headless mode.

test_login_logout()[source]

Test for Globus.login and Globus.logout methods.

test_save_refresh_token_callback()[source]

Test for Globus._save_refresh_token_callback method.

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

Bases: IsolatedAsyncioTestCase, _GlobusClientTest

Asynchronous Globus method tests.

async test_task_wait_async()[source]

Test for Globus.task_wait_async method.