def idempotent_id(id):
 if (not isinstance(id, six.string_types)):
  raise TypeError(('Test idempotent_id must be string not %s' % type(id).__name__))
 uuid.UUID(id)
 def decorator(f):
  f = testtools.testcase.attr(('id-%s' % id))(f)
  if f.__doc__:
   f.__doc__ = ('Test idempotent id: %s\n%s' % (id, f.__doc__))
  else:
   f.__doc__ = ('Test idempotent id: %s' % id)
  return f
 return decorator

def idempotent_id ( id ) : if ( not isinstance ( id , six . string_types ) ) : raise TypeError ( ( 'Test idempotent_id must be string not %s' % type ( id ) . __name__ ) ) uuid . UUID ( id ) def decorator ( f ) : f = testtools . testcase . attr ( ( 'id-%s' % id ) ) ( f ) if f . __doc__ : f . __doc__ = ( 'Test idempotent id: %s\n%s' % ( id , f . __doc__ ) ) else : f . __doc__ = ( 'Test idempotent id: %s' % id ) return f return decorator
stub for metadata decorator .