def test_container_exec(self):
     fake_binary = "ceph-volume"
     fake_container_image = "docker.io/ceph/daemon:latest-luminous"
     expected_command_list = [
         'docker',
         'run',
         '--rm',
         '--privileged',
         '--net=host',
         '--ipc=host',  # noqa E501
         '-v',
         '/run/lock/lvm:/run/lock/lvm:z',
         '-v',
         '/var/run/udev/:/var/run/udev/:z',
         '-v',
         '/dev:/dev',
         '-v',
         '/etc/ceph:/etc/ceph:z',  # noqa E501
         '-v',
         '/run/lvm/:/run/lvm/',  # noqa E501
         '-v',
         '/var/lib/ceph/:/var/lib/ceph/:z',
         '-v',
         '/var/log/ceph/:/var/log/ceph/:z',
         '--entrypoint=ceph-volume',
         'docker.io/ceph/daemon:latest-luminous'
     ]
     result = ceph_volume.container_exec(fake_binary, fake_container_image)
     assert result == expected_command_list
 def test_container_exec(self):
     fake_binary = "ceph-volume"
     fake_container_image = "docker.io/ceph/daemon:latest"
     expected_command_list = container_cmd + [fake_container_image]
     result = ceph_volume.container_exec(fake_binary, fake_container_image)
     assert result == expected_command_list