def test_get_container_command_non_existing_image(self, docker_client: DockerClient): with pytest.raises(NoSuchImage): docker_client.get_image_cmd("thisdoesnotexist")
def test_get_container_command(self, docker_client: DockerClient): command = docker_client.get_image_cmd("alpine") assert "/bin/sh" == command