def METHOD_NAME(
        self, mock_getenv, mock_expanduser):
    """
    verify that get_user_PROVIDERPATH_entry() still works with unset
    XDG_DATA_HOME
    """
    def getenv(name, default=None):
        if name == 'XDG_DATA_HOME':
            return default
        else:
            self.fail(("no other environment should be consulted"
                       " (asked for {!r})".format(name)))
    mock_getenv.side_effect = getenv
    def expanduser(path):
        return path.replace("~", "/home/user")
    mock_expanduser.side_effect = expanduser
    measured = get_user_PROVIDERPATH_entry()
    expected = "/home/user/.local/share/plainbox-providers-1"
    self.assertEqual(measured, expected)