@classmethod
def has_deconstructor(cls, obj):
    """
        Test whether obj was assigned a deconstructor by assign_deconstructor().
        """
    try:
        return obj.__class__.__del__.__func__.func_defaults[1
            ] is cls.id_to_weakref_callback_pair
    except:
        return False
