Module Expr Str Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias Import alias identifier ImportFrom alias FunctionDef arguments args defaults body Expr Str Return BoolOpOr Call AttributeLoad NameLoad attr Call NameLoad Str Str Dict decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Dict Str Str Call NameLoad ListLoad Str Call NameLoad ListLoad Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Dict Str Str Str Call NameLoad ListLoad Str Call NameLoad ListLoad Str Call NameLoad ListLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Dict Str TupleLoad Str Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Dict Str TupleLoad TupleLoad Str Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Dict Str TupleLoad TupleLoad ListLoad Str Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Dict Str TupleLoad TupleLoad ListLoad Num Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Dict Str Str Str Str Str Call NameLoad ListLoad Str Call NameLoad ListLoad Str Str Call NameLoad ListLoad Str Call NameLoad ListLoad Str Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assert Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Dict Str Str Str Str Str Str Str Call NameLoad ListLoad Str Str Call NameLoad Call NameLoad ListLoad Str Call NameLoad Call NameLoad Str Call NameLoad Call NameLoad ListLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assert Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad ListLoad Str Str Str Str Str Str Str AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam defaults body Expr Str Assert Call AttributeLoad NameLoad attr Str Assert UnaryOpNot Call AttributeLoad NameLoad attr Str decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Dict Str Dict Str Str Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Call NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Dict Str Str Dict Str Str Str Str Dict Str Str Str Str Str ListLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Call NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Call NameLoad ListLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Call NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Call NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Call NameLoad ListLoad Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Call NameLoad ListLoad Str Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Dict Str Dict Str Str Str Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr CompareIn Str NameLoad Assert Call NameLoad SubscriptLoad NameLoad Index Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Dict Str Dict Str Str Str Str Str ListLoad Dict Str Str Str Str Str Str Str Str Str Num Num Str Assign NameStore Dict Str Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore SubscriptLoad NameLoad Index Str Assert Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Dict Str Str Str Str Str Str Str Str Str Num Num Num AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assert Call NameLoad SubscriptLoad NameLoad Index Str NameLoad Assert Call NameLoad SubscriptLoad NameLoad Index Str NameLoad Assert Call NameLoad SubscriptLoad NameLoad Index Str NameLoad Assert Call NameLoad SubscriptLoad NameLoad Index Str NameLoad Assert Call NameLoad SubscriptLoad NameLoad Index Str NameLoad Assert Call NameLoad SubscriptLoad NameLoad Index Str NameLoad Assign NameStore SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Assign NameStore SubscriptLoad NameLoad Index Str Assert Call NameLoad AttributeLoad NameLoad attr NameLoad Assert Call NameLoad AttributeLoad NameLoad attr NameLoad Assert Call NameLoad AttributeLoad NameLoad attr NameLoad Assert Call NameLoad AttributeLoad NameLoad attr NameLoad decorator_list decorator_list
N/A N/A  Unit Tests for Resolver Module  N/A unittest N/A yaml chassis.test.example_classes Bar chassis.test.example_classes Baz chassis.test.example_classes Foo chassis.test.example_classes Spam chassis.test.example_classes Qux chassis.test.example_classes Wobble chassis.test.example_classes TestLogger N/A chassis.services.dependency_injection.resolver resolver chassis.util.tree DependencyTree get_config_yaml N/A N/A N/A N/A N/A  Load test config YAML file  N/A N/A N/A N/A yaml load N/A open test/services/dependency_injection/test_config.yml r N/A N/A DetectCircleTest N/A N/A unittest TestCase N/A N/A  Unit Tests for detect_circle method  test_detect_circle_raises_circular_exception N/A N/A self N/A N/A N/A 
            Check that Circular Dependencies are
            detected and an exception is raised.
         N/A N/A N/A self assertRaises N/A resolver CircularDependencyException N/A resolver detect_circle N/A a b N/A set N/A b N/A set N/A a N/A N/A N/A self assertRaises N/A resolver CircularDependencyException N/A resolver detect_circle N/A a b c N/A set N/A b N/A set N/A c N/A set N/A a N/A test_detect_circle_raises_type_exception N/A N/A self N/A N/A N/A 
            Check that invalid argument types are
            detected and an exception is raised.
         N/A N/A N/A self assertRaises TypeError N/A resolver _detect_circle not_a_dictionary N/A N/A N/A self assertRaises TypeError N/A resolver _detect_circle N/A a N/A not_a_tuple N/A N/A N/A self assertRaises TypeError N/A resolver _detect_circle N/A a N/A N/A not_a_list N/A N/A N/A self assertRaises TypeError N/A resolver _detect_circle N/A a N/A N/A N/A not_an_integer N/A N/A N/A self assertRaises TypeError N/A resolver _detect_circle N/A a N/A N/A N/A 0 not_a_list N/A test_detect_circle_2 N/A N/A self N/A N/A N/A  Test another Circular Dependency Case  N/A graph N/A a b c d e N/A set N/A b N/A set N/A c d N/A set N/A e N/A set N/A e N/A set N/A tree N/A N/A resolver detect_circle graph N/A N/A isinstance tree DependencyTree N/A test_detect_circle N/A N/A self N/A N/A N/A 
            Check that a Circular Dependency exception
            is not raised for a valid graph.
         N/A graph N/A a b c d e f g N/A set N/A f c N/A set N/A set N/A b N/A set N/A set d N/A set N/A set N/A a N/A tree N/A N/A resolver detect_circle graph N/A N/A isinstance tree DependencyTree N/A N/A N/A self assertEquals 7 N/A tree head_count N/A N/A N/A self assertEquals N/A set N/A a b c d e f g N/A tree head_values N/A N/A DependencyNameTest N/A N/A unittest TestCase N/A N/A  Is dependency method Unit Tests  test_names N/A N/A self N/A N/A N/A  Assert correct service string values are detected  N/A N/A N/A resolver is_dependency_name @foo N/A N/A N/A N/A resolver is_dependency_name foo N/A N/A ResolverTest N/A N/A unittest TestCase N/A N/A  Resolver class Unit Tests  test_init_nodes N/A N/A self N/A N/A N/A  Simple init nodes test  N/A config N/A foo N/A module class chassis.test.example_classes Foo N/A rslvr N/A N/A resolver Resolver config N/A nodes N/A rslvr nodes N/A N/A N/A self assertEquals N/A nodes N/A foo N/A set N/A test_init_nodes_with_a_dependency N/A N/A self N/A N/A N/A  Init nodes with a dependency  N/A config N/A foo bar N/A module class chassis.test.example_classes Foo N/A module class args chassis.test.example_classes Bar N/A @foo N/A rslvr N/A N/A resolver Resolver config N/A nodes N/A rslvr nodes N/A N/A N/A self assertEquals N/A nodes N/A foo N/A set N/A N/A N/A self assertEquals N/A nodes N/A bar N/A set N/A foo N/A test_init_nodes_complicated N/A N/A self N/A N/A N/A  Initialize nodes with advanced config YAML file  N/A config N/A get_config_yaml N/A rslvr N/A N/A resolver Resolver config N/A nodes N/A rslvr nodes N/A N/A N/A self assertEquals N/A nodes N/A baz N/A set N/A N/A N/A self assertEquals N/A nodes N/A foo N/A set N/A N/A N/A self assertEquals N/A nodes N/A bar N/A set N/A foo N/A N/A N/A self assertEquals N/A nodes N/A qux N/A set N/A foo bar baz N/A test_do_simple N/A N/A self N/A N/A N/A  Simple config resolution  N/A rslvr N/A N/A resolver Resolver N/A foo N/A module class chassis.test.example_classes Foo N/A services N/A N/A rslvr do N/A N/A N/A self assertTrue N/A foo services N/A N/A isinstance N/A services N/A foo Foo N/A test_advanced N/A N/A self N/A N/A N/A Test advanced configuration dictionary. N/A config N/A logger N/A module class args chassis.test.example_classes TestLogger N/A N/A name path file_base_name max_file_bytes backup_count port test_logger /var/foo testlog 500 10 $_port N/A scalars N/A _port 555 N/A rslvr N/A N/A resolver Resolver config scalars N/A services N/A N/A rslvr do N/A logger N/A services N/A logger N/A N/A isinstance logger TestLogger N/A N/A N/A self assertEquals N/A name path file_base_name max_file_bytes backup_count port test_logger /var/foo testlog 500 10 555 N/A logger config N/A test_do_complicated N/A N/A self N/A N/A N/A  Instantiate services from advanced YAML file  N/A config N/A get_config_yaml N/A rslvr N/A N/A resolver Resolver config N/A services N/A N/A rslvr do N/A N/A isinstance N/A services N/A foo Foo N/A N/A isinstance N/A services N/A bar Bar N/A N/A isinstance N/A services N/A baz Baz N/A N/A isinstance N/A services N/A qux Qux N/A N/A isinstance N/A services N/A wobble Wobble N/A N/A isinstance N/A services N/A spam Spam N/A spam N/A services N/A spam N/A N/A N/A self assertEquals N/A spam ham ham! N/A N/A N/A self assertEquals N/A spam eggs eggz N/A wobble N/A services N/A wobble N/A N/A isinstance N/A wobble foo Foo N/A N/A isinstance N/A wobble bar Bar N/A N/A isinstance N/A wobble baz Baz N/A N/A isinstance N/A wobble spam Spam N/A N/A