def _snapshot_device(self, source, destination): images.snapshot(None, source, destination)
def test_snapshot(self, mock_execute): images.snapshot(None, '/a/b/c/base', '/a/b/c/snap') mock_execute.assert_called_with( None, 'qemu-img convert --force-share -O qcow2 /a/b/c/base /a/b/c/snap')