def checkSessionType(assoc_type, session_type):
    """Check to make sure that this pair of assoc type and session
    type are allowed"""
    if getSessionTypes(assoc_type) not in session_type:
        raise ValueError(
            'Session type %r not valid for assocation type %r'
            % (session_type, assoc_type))
dataset/ETHPy150Open CollabQ/CollabQ/openid/association.py/checkSessionType/swapped operands of `not in`