def is_among(value, *possibilities):
    """
    Ensure that the method that has been used for the request is one
    of the expected ones (e.g., GET or POST).
    """
    for possibility in possibilities:
        if value == possibility:
            return True
    raise Exception('A different request value was encountered than expected: {0}'.format(value))