def verify_params(post_dict):
    """
    Verify that a post dict contains the expected parameters.
    """
    if ('target' not in post_dict) or ('source' not in post_dict):
        return False
    if not post_dict['target'] or not post_dict['source']:
        return False
    return True