Module Expr Str Import alias Import alias Import alias Import alias Import alias Expr Call AttributeLoad NameLoad attr keyword NameLoad Import alias ImportFrom alias ImportFrom alias identifier ImportFrom alias identifier Import alias ImportFrom alias identifier ImportFrom alias identifier ImportFrom alias ImportFrom alias identifier ImportFrom alias Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Str ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign SubscriptStore AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign SubscriptStore AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body Pass decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Num TryExcept body Assign NameStore Call NameLoad NameLoad handlers ExceptHandler type NameLoad body Assign NameStore Num If CompareGt NameLoad Num body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr If BoolOpOr CompareEq Call AttributeLoad AttributeLoad NameLoad attr attr Str Str CompareEq Call AttributeLoad AttributeLoad NameLoad attr attr Str Str body Assign NameStore AttributeLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str NameLoad If BoolOpOr CompareEq Call AttributeLoad AttributeLoad NameLoad attr attr Str Str CompareEq Call AttributeLoad AttributeLoad NameLoad attr attr Str Str body Assign NameStore AttributeLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad Call AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr keyword Str keyword NameLoad Expr Call AttributeLoad NameLoad attr keyword Str keyword NameLoad keyword Str Expr Call AttributeLoad NameLoad attr ListLoad keyword ListLoad decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body For NameStore ListComp NameLoad comprehension NameStore Call AttributeLoad AttributeLoad NameLoad attr attr CompareNotEq SubscriptLoad NameLoad Index Num Str body Delete SubscriptDel AttributeLoad NameLoad attr Index NameLoad decorator_list FunctionDef arguments args NameParam defaults kwarg body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults kwarg body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Str If NameLoad body Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad orelse Return NameLoad decorator_list decorator_list
N/A N/A Base classes for our unit tests.

Allows overriding of config for use of fakes, and some black magic for
inline callbacks.

 N/A copy N/A os N/A sys N/A tempfile N/A eventlet N/A N/A N/A eventlet monkey_patch os False N/A fixtures oslo_config cfg oslo_config fixture config_fixture oslo_log log logging N/A testtools ironic.common config ironic_config ironic.common context ironic_context ironic.common hash_ring ironic.objects base objects_base ironic.tests.unit policy_fixture N/A CONF N/A cfg CONF N/A N/A N/A CONF import_opt host ironic.common.service N/A N/A N/A logging register_options CONF N/A N/A N/A logging setup CONF ironic ReplaceModule N/A N/A fixtures Fixture N/A N/A Replace a module with a fake module. __init__ N/A N/A self name new_value N/A N/A N/A N/A self name name N/A N/A self new_value new_value N/A _restore N/A N/A self old_value N/A N/A N/A N/A N/A sys modules N/A N/A self name old_value N/A setUp N/A N/A self N/A N/A N/A N/A N/A N/A super ReplaceModule self setUp N/A old_value N/A N/A N/A sys modules get N/A self name N/A N/A N/A sys modules N/A N/A self name N/A self new_value N/A N/A N/A self addCleanup N/A self _restore old_value N/A N/A TestingException N/A Exception N/A N/A N/A TestCase N/A N/A testtools TestCase N/A N/A Test case base class for all unit tests. setUp N/A N/A self N/A N/A N/A Run before each test method to initialize test environment. N/A N/A N/A N/A super TestCase self setUp N/A N/A self context N/A N/A ironic_context get_admin_context N/A test_timeout N/A N/A N/A os environ get OS_TEST_TIMEOUT 0 N/A N/A N/A test_timeout N/A int test_timeout N/A N/A N/A ValueError N/A N/A test_timeout 0 N/A N/A test_timeout 0 N/A N/A N/A N/A self useFixture N/A N/A fixtures Timeout test_timeout gentle True N/A N/A N/A self useFixture N/A N/A fixtures NestedTempfile N/A N/A N/A self useFixture N/A N/A fixtures TempHomeDir N/A N/A N/A N/A N/A N/A os environ get OS_STDOUT_CAPTURE True N/A N/A N/A N/A os environ get OS_STDOUT_CAPTURE 1 N/A N/A stdout N/A N/A N/A self useFixture N/A N/A fixtures StringStream stdout stream N/A N/A N/A self useFixture N/A N/A fixtures MonkeyPatch sys.stdout stdout N/A N/A N/A N/A N/A N/A os environ get OS_STDERR_CAPTURE True N/A N/A N/A N/A os environ get OS_STDERR_CAPTURE 1 N/A N/A stderr N/A N/A N/A self useFixture N/A N/A fixtures StringStream stderr stream N/A N/A N/A self useFixture N/A N/A fixtures MonkeyPatch sys.stderr stderr N/A N/A self log_fixture N/A N/A self useFixture N/A N/A fixtures FakeLogger N/A N/A N/A self _set_config N/A N/A N/A objects_base IronicObject indirection_api None N/A N/A self _base_test_obj_backup N/A N/A copy copy N/A N/A N/A objects_base IronicObjectRegistry obj_classes N/A N/A N/A self addCleanup N/A self _restore_obj_registry N/A N/A N/A self addCleanup N/A self _clear_attrs N/A N/A N/A self addCleanup N/A N/A N/A hash_ring HashRingManager reset N/A N/A N/A self useFixture N/A N/A fixtures EnvironmentVariable http_proxy N/A N/A self policy N/A N/A self useFixture N/A N/A policy_fixture PolicyFixture N/A _set_config N/A N/A self N/A N/A N/A N/A self cfg_fixture N/A N/A self useFixture N/A N/A config_fixture Config CONF N/A N/A N/A self config use_stderr False fatal_exception_format_errors True tempdir N/A tempfile tempdir N/A N/A N/A self set_defaults host fake-mini verbose True N/A N/A N/A self set_defaults connection sqlite:// sqlite_synchronous False group database N/A N/A N/A ironic_config parse_args N/A default_config_files N/A N/A _restore_obj_registry N/A N/A self N/A N/A N/A N/A N/A N/A objects_base IronicObjectRegistry _registry _obj_classes N/A self _base_test_obj_backup N/A _clear_attrs N/A N/A self N/A N/A N/A key N/A k N/A k N/A N/A N/A self __dict__ keys N/A N/A k N/A 0 _ N/A N/A N/A N/A self __dict__ N/A key N/A config N/A N/A self N/A kw N/A N/A Override config options for a test. N/A N/A N/A N/A self cfg_fixture config kw N/A set_defaults N/A N/A self N/A kw N/A N/A Set default values of config options. N/A group N/A N/A kw pop group None N/A N/A o v N/A N/A kw items N/A N/A N/A N/A N/A self cfg_fixture set_default o v group group N/A path_get N/A N/A self project_file N/A None N/A N/A Get the absolute path to a file. Used for testing the API.

        :param project_file: File whose path to return. Default: None.
        :returns: path to the specified file, or path to project root.
         N/A root N/A N/A N/A os path abspath N/A N/A N/A os path join N/A N/A N/A os path dirname __file__ .. .. N/A project_file N/A N/A N/A N/A N/A os path join root project_file N/A N/A root N/A N/A