def METHOD_NAME(
    create_command, first_app_config, ldd_output, version
):
    "Test that the glibc version in a docker container can be determined"
    # Mock an app being built on docker
    create_command.target_image = "somevendor:surprising"
    first_app_config.target_image = "somevendor:surprising"
    # Mock a verified Docker, and the output of ldd.
    create_command.tools.docker = MagicMock()
    create_command.tools.docker.check_output.return_value = "\n".join(ldd_output)
    # The glibc version was returned
    assert create_command.target_glibc_version(first_app_config) == version
    # Docker was consulted for the glibc version
    create_command.tools.docker.check_output.assert_called_once_with(
        ["ldd", "--version"],
        image_tag="somevendor:surprising",
    )