openstackclient.tests.common package

Submodules

openstackclient.tests.common.test_clientmanager module

class openstackclient.tests.common.test_clientmanager.Container

Bases: object

attr = <object object at 0x7fb2d1f23c40>
class openstackclient.tests.common.test_clientmanager.FakeOptions(**kwargs)

Bases: object

class openstackclient.tests.common.test_clientmanager.TestClientCache(*args, **kwargs)

Bases: openstackclient.tests.utils.TestCase

test_singleton()
class openstackclient.tests.common.test_clientmanager.TestClientManager(*args, **kwargs)

Bases: openstackclient.tests.utils.TestCase

setUp()
stub_auth(json=None, url=None, verb=None, **kwargs)
test_client_manager_password()
test_client_manager_password_verify_ca()
test_client_manager_select_auth_plugin()
test_client_manager_select_auth_plugin_failure()
test_client_manager_token()
test_client_manager_token_endpoint()

openstackclient.tests.common.test_commandmanager module

openstackclient.tests.common.test_commandmanager.FAKE_CMD_ALPHA

alias of FakeCommand

openstackclient.tests.common.test_commandmanager.FAKE_CMD_BETA

alias of FakeCommand

openstackclient.tests.common.test_commandmanager.FAKE_CMD_ONE

alias of FakeCommand

openstackclient.tests.common.test_commandmanager.FAKE_CMD_TWO

alias of FakeCommand

class openstackclient.tests.common.test_commandmanager.FakeCommand

Bases: object

classmethod load()
class openstackclient.tests.common.test_commandmanager.FakeCommandManager(namespace, convert_underscores=True)

Bases: openstackclient.common.commandmanager.CommandManager

commands = {}
load_commands(namespace)
class openstackclient.tests.common.test_commandmanager.TestCommandManager(*args, **kwargs)

Bases: openstackclient.tests.utils.TestCase

test_add_command_group()
test_get_command_groups()
test_get_command_names()

openstackclient.tests.common.test_extension module

class openstackclient.tests.common.test_extension.TestExtension(*args, **kwargs)

Bases: openstackclient.tests.utils.TestCommand

setUp()
class openstackclient.tests.common.test_extension.TestExtensionList(*args, **kwargs)

Bases: openstackclient.tests.common.test_extension.TestExtension

setUp()
test_extension_list_identity()
test_extension_list_long()
test_extension_list_network()
test_extension_list_no_options()

openstackclient.tests.common.test_module module

Test module module

class openstackclient.tests.common.test_module.TestCommandList(*args, **kwargs)

Bases: openstackclient.tests.utils.TestCommand

setUp()
test_command_list_no_options()
class openstackclient.tests.common.test_module.TestModuleList(*args, **kwargs)

Bases: openstackclient.tests.utils.TestCommand

setUp()
test_module_list_all(*args, **kw)
test_module_list_no_options(*args, **kw)

openstackclient.tests.common.test_parseractions module

class openstackclient.tests.common.test_parseractions.TestKeyValueAction(*args, **kwargs)

Bases: openstackclient.tests.utils.TestCase

test_default_values()
test_error_values()
test_good_values()

openstackclient.tests.common.test_timing module

Test Timing pseudo-command

class openstackclient.tests.common.test_timing.FakeGenericClient(**kwargs)

Bases: object

class openstackclient.tests.common.test_timing.TestTiming(*args, **kwargs)

Bases: openstackclient.tests.utils.TestCommand

setUp()
test_timing_list()
test_timing_list_no_data()

openstackclient.tests.common.test_utils module

exception openstackclient.tests.common.test_utils.NoUniqueMatch

Bases: exceptions.Exception

class openstackclient.tests.common.test_utils.TestFindResource(*args, **kwargs)

Bases: openstackclient.tests.utils.TestCase

setUp()
test_find_resource_find()
test_find_resource_find_no_unique()
test_find_resource_find_not_found()
test_find_resource_get_int()
test_find_resource_get_int_string()
test_find_resource_get_uuid()
test_find_resource_get_whatever()
test_format_dict()
test_format_list()
class openstackclient.tests.common.test_utils.TestUtils(*args, **kwargs)

Bases: openstackclient.tests.utils.TestCase

get_test_items()
test_get_password_bad_once()
test_get_password_cntrl_d()
test_get_password_good()
test_get_password_no_tty()
test_sort_items_all_with_direction()
test_sort_items_some_with_direction()
test_sort_items_with_empty_key()
test_sort_items_with_invalid_direction()
test_sort_items_with_invalid_key()
test_sort_items_with_multiple_keys()
test_sort_items_with_object()
test_sort_items_with_one_key()

Module contents