def use_rand_uuid_instead_of_uuid4(logical_line, filename):
 if ('tempest/lib/' in filename):
  return
 if ('uuid.uuid4()' not in logical_line):
  return
 msg = 'T113: Tests should use data_utils.rand_uuid()/rand_uuid_hex() instead of uuid.uuid4()/uuid.uuid4().hex'
 (yield (0, msg))

def use_rand_uuid_instead_of_uuid4 ( logical_line , filename ) : if ( 'tempest/lib/' in filename ) : return if ( 'uuid.uuid4()' not in logical_line ) : return msg = 'T113: Tests should use data_utils.rand_uuid()/rand_uuid_hex() instead of uuid.uuid4()/uuid.uuid4().hex' ( yield ( 0 , msg ) )
check that tests use data_utils .