def clear()

in doubles/lifecycle.py [0:0]


def clear(*objects_to_clear):
    """Clears allowances/expectations on objects

    :param object objects_to_clear: The objects to remove allowances and
    expectations from.
    """
    if not hasattr(_thread_local_data, 'current_space'):
        return

    space = current_space()
    for obj in objects_to_clear:
        space.clear(obj)