'Verifies display name of duplicated item.'

def _verify_duplicate_display_name(self, original_item, duplicated_item, is_child=False):

    if is_child:
        if (original_item.display_name is None):
            return (duplicated_item.display_name == original_item.category)
        return (duplicated_item.display_name == original_item.display_name)
    if (original_item.display_name is not None):
        return (duplicated_item.display_name == "Duplicate    of    '{display_name}'".format(display_name=original_item.display_name))
    return (duplicated_item.display_name == 'Duplicate    of    {display_name}'.format(display_name=original_item.category))
