def METHOD_NAME(self, mock_user):
    mock_user.is_domain_admin.return_value = True
    mock_user.has_permission.return_value = False
    def mock_handler(domain, privilege):
        return privilege == RELEASE_MANAGEMENT
    with patch('corehq.apps.linked_domain.util.domain_has_privilege') as mock_domain_has_privilege:
        mock_domain_has_privilege.side_effect = mock_handler
        result = can_user_access_linked_domains(mock_user, 'test')
    self.assertTrue(result)