'Set the allowed association types, checking to make sure
each combination is valid.'

def setAllowedTypes(self, allowed_types):

    for (assoc_type, session_type) in allowed_types:
        checkSessionType(assoc_type, session_type)
    self.allowed_types = allowed_types
