'Is this combination of association type and session type allowed?'

def isAllowed(self, assoc_type, session_type):

    assoc_good = ((assoc_type, session_type) in self.allowed_types)
    matches = (session_type in getSessionTypes(assoc_type))
    return (assoc_good and matches)
