Exemplo n.º 1
0
def when_not(*desired_states):
    """
    Check if not all of the desired_states are active and have changed.
    """
    return helpers._when(desired_states, True)
Exemplo n.º 2
0
def when(*desired_states):
    """
    Check if all of the desired_states are active and have changed.
    """
    return helpers._when(desired_states, False)