def is_user_owner_of_test(user_profile, test):
    """
    Find whether test is owned by user
    :param user_profile: UserProfile object
    :param test: Test object
    :return: True if user owner of test else False
    """
    return user_profile == test.owner