for key, subparam in expected.iteritems():
if isinstance(subparam, Parameter) and \
subparam.optional is not None and \
not subparam.optional and key not in value.keys():
raise SfaInvalidArgument("'%s' not specified" % key, name)
for key, subparam in expected.iteritems():
if isinstance(subparam, Parameter) and \
subparam.optional is not None and \
not subparam.optional and key not in value.keys():
raise SfaInvalidArgument("'%s' not specified" % key, name)