(all, sub, topicName, extraMsg='')
Verify that sub is a subset of all for topicName. Raise
    MessageDataSpecError if fail.
Verify that sub is a subset of all for topicName. Raise
    MessageDataSpecError if fail.
Verify that sub is a subset of all for topicName . Raise MessageDataSpecError if fail .
def verifySubset(all, sub, topicName, extraMsg=''):
    """
    Verify that sub is a subset of all for topicName. Raise
    MessageDataSpecError if fail.
    """
    notInAll = set(sub).difference(all)
    if notInAll:
        args = ','.join(all)
        msg = 'Params [%s] missing inherited [%%s] for topic "%s"%s' % (args, topicName, extraMsg)
        raise MessageDataSpecError(msg, tuple(notInAll))
def verifySubset ( all , sub , topicName , extraMsg = '' ) : notInAll = set ( sub ) . difference ( all ) if notInAll : args = ',' . join ( all ) msg = 'Params [%s] missing inherited [%%s] for topic "%s"%s' % ( args , topicName , extraMsg ) raise MessageDataSpecError ( msg , tuple ( notInAll ) )