'Create host mount value of datastore with single mount info.
:param access_mode: string specifying the read/write permission
:param set_accessible: specify whether accessible property
should be set
:param is_accessible: boolean specifying whether the datastore
is accessible to host
:param host: managed object reference of the connected
host
:return: list of host mount info'

def _create_host_mounts(self, access_mode, host, set_accessible=True, is_accessible=True, mounted=True):

    mntInfo = mock.Mock(spec=object)
    mntInfo.accessMode = access_mode
    if set_accessible:
        mntInfo.accessible = is_accessible
    else:
        del mntInfo.accessible
    mntInfo.mounted = mounted
    host_mount = mock.Mock(spec=object)
    host_mount.key = host
    host_mount.mountInfo = mntInfo
    host_mounts = mock.Mock(spec=object)
    host_mounts.DatastoreHostMount = [host_mount]
    return host_mounts
