Module ImportFrom alias ImportFrom alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Dict Str Str Str Str Str Str Str Str Str Str Str AttributeLoad NameLoad attr Str Str Num Str NameLoad Num Num ListLoad Str Str Dict Str Dict Dict Str Dict Str Str Str Str Str Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Dict Str Str Str AttributeLoad NameLoad attr Str Str decorator_list FunctionDef arguments args NameParam defaults body Assign SubscriptStore AttributeLoad NameLoad attr Index Str ListComp BinOpAdd Str NameLoad comprehension NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Dict Str Str Str AttributeLoad NameLoad attr Str Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad NameLoad Dict Str Str Str Dict Str ListLoad Str Str keyword NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Dict Str Str Str Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad NameLoad AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign SubscriptStore AttributeLoad NameLoad attr Index Str Str Assign NameStore Call NameLoad NameLoad AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign SubscriptStore AttributeLoad NameLoad attr Index Str Str Assign NameStore Call NameLoad NameLoad AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad Call NameLoad keyword Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad NameLoad AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Index Str attr Dict Str Str ListLoad Dict Str Str Str Str ListLoad Assign NameStore Call NameLoad NameLoad AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Index Str attr Dict Str ListLoad Dict Str Str Str Str Assign NameStore Call NameLoad NameLoad AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num keyword Str Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad NameLoad Dict Str Str Str Dict Str ListLoad Str keyword NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str ListLoad Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad NameLoad AttributeLoad NameLoad attr keyword NameLoad Assert CompareEq AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Slice Num decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call NameLoad Dict Expr Call AttributeLoad NameLoad attr Call NameLoad Dict Str Str Str Expr Call AttributeLoad NameLoad attr Call NameLoad Dict Str ListLoad Str Str Str Expr Call AttributeLoad NameLoad attr Call NameLoad Dict Str ListLoad Str Str Str decorator_list decorator_list
N/A __future__ absolute_import __future__ unicode_literals N/A docker N/A mock N/A unittest compose.container Container compose.container get_container_name ContainerTest N/A N/A unittest TestCase N/A setUp N/A N/A self N/A N/A N/A N/A self container_id abcabcabcbabc12345 N/A N/A self container_dict N/A Id Image Command Created Status Ports SizeRw SizeRootFs Names NetworkSettings Config N/A self container_id busybox:latest top 1387384730 Up 8 seconds None 0 0 N/A /composetest_db_1 /composetest_web_1/db N/A Ports N/A N/A Labels N/A com.docker.compose.project com.docker.compose.service com.docker.compose.container-number composetest web 7 N/A test_from_ps N/A N/A self N/A N/A N/A container N/A N/A Container from_ps None N/A self container_dict has_been_inspected True N/A N/A N/A self assertEqual N/A container dictionary N/A Id Image Name N/A self container_id busybox:latest /composetest_db_1 N/A test_from_ps_prefixed N/A N/A self N/A N/A N/A N/A N/A self container_dict N/A Names N/A N/A /swarm-host-1 n N/A n N/A N/A self container_dict N/A Names N/A container N/A N/A Container from_ps None N/A self container_dict has_been_inspected True N/A N/A N/A self assertEqual N/A container dictionary N/A Id Image Name N/A self container_id busybox:latest /composetest_db_1 N/A test_environment N/A N/A self N/A N/A N/A container N/A Container None N/A Id Config abc N/A Env N/A FOO=BAR BAZ=DOGE has_been_inspected True N/A N/A N/A self assertEqual N/A container environment N/A FOO BAZ BAR DOGE N/A test_number N/A N/A self N/A N/A N/A container N/A Container None N/A self container_dict has_been_inspected True N/A N/A N/A self assertEqual N/A container number 7 N/A test_name N/A N/A self N/A N/A N/A container N/A N/A Container from_ps None N/A self container_dict has_been_inspected True N/A N/A N/A self assertEqual N/A container name composetest_db_1 N/A test_name_without_project N/A N/A self N/A N/A N/A N/A N/A self container_dict N/A Name /composetest_web_7 N/A container N/A Container None N/A self container_dict has_been_inspected True N/A N/A N/A self assertEqual N/A container name_without_project web_7 N/A test_name_without_project_custom_container_name N/A N/A self N/A N/A N/A N/A N/A self container_dict N/A Name /custom_name_of_container N/A container N/A Container None N/A self container_dict has_been_inspected True N/A N/A N/A self assertEqual N/A container name_without_project custom_name_of_container N/A test_inspect_if_not_inspected N/A N/A self N/A N/A N/A mock_client N/A N/A mock create_autospec N/A docker Client N/A container N/A Container mock_client N/A dict Id the_id N/A N/A N/A container inspect_if_not_inspected N/A N/A N/A N/A mock_client inspect_container assert_called_once_with the_id N/A N/A N/A self assertEqual N/A container dictionary N/A N/A mock_client inspect_container return_value N/A N/A N/A self assertTrue N/A container has_been_inspected N/A N/A N/A container inspect_if_not_inspected N/A N/A N/A self assertEqual N/A N/A mock_client inspect_container call_count 1 N/A test_human_readable_ports_none N/A N/A self N/A N/A N/A container N/A Container None N/A self container_dict has_been_inspected True N/A N/A N/A self assertEqual N/A container human_readable_ports N/A test_human_readable_ports_public_and_private N/A N/A self N/A N/A N/A N/A N/A N/A N/A N/A self container_dict N/A NetworkSettings N/A Ports update N/A 45454/tcp 45453/tcp N/A N/A HostIp HostPort 0.0.0.0 49197 N/A N/A container N/A Container None N/A self container_dict has_been_inspected True N/A expected 45453/tcp, 0.0.0.0:49197->45454/tcp N/A N/A N/A self assertEqual N/A container human_readable_ports expected N/A test_get_local_port N/A N/A self N/A N/A N/A N/A N/A N/A N/A N/A self container_dict N/A NetworkSettings N/A Ports update N/A 45454/tcp N/A N/A HostIp HostPort 0.0.0.0 49197 N/A container N/A Container None N/A self container_dict has_been_inspected True N/A N/A N/A self assertEqual N/A N/A container get_local_port 45454 protocol tcp 0.0.0.0:49197 N/A test_get N/A N/A self N/A N/A N/A container N/A Container None N/A Status HostConfig Up 8 seconds N/A VolumesFrom N/A volume_id has_been_inspected True N/A N/A N/A self assertEqual N/A N/A container get Status Up 8 seconds N/A N/A N/A self assertEqual N/A N/A container get HostConfig.VolumesFrom N/A volume_id N/A N/A N/A self assertEqual N/A N/A container get Foo.Bar.DoesNotExist None N/A test_short_id N/A N/A self N/A N/A N/A container N/A Container None N/A self container_dict has_been_inspected True N/A N/A N/A container short_id N/A N/A self container_id N/A 12 N/A N/A GetContainerNameTestCase N/A N/A unittest TestCase N/A test_get_container_name N/A N/A self N/A N/A N/A N/A N/A self assertIsNone N/A get_container_name N/A N/A N/A N/A self assertEqual N/A get_container_name N/A Name myproject_db_1 myproject_db_1 N/A N/A N/A self assertEqual N/A get_container_name N/A Names N/A /myproject_db_1 /myproject_web_1/db myproject_db_1 N/A N/A N/A self assertEqual N/A get_container_name N/A Names N/A /swarm-host-1/myproject_db_1 /swarm-host-1/myproject_web_1/db myproject_db_1 N/A N/A