Exemple #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)
Exemple #2
0
def when(*desired_states):
    """
    Check if all of the desired_states are active and have changed.
    """
    return helpers._when(desired_states, False)