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