def DoesTestHaveLabels(cls, labels):
  labels = set(labels)

  for name in dir(cls):
    if name.startswith("test"):
      item = getattr(cls, name, None)
      if labels.intersection(getattr(item, "labels", set(["small"]))):
        return True

  return False
Check things that have to be finalized at the end of a test suite.
dataset/ETHPy150Open google/grr/grr/tools/run_tests.py/DoesTestHaveLabels--crossover with--dataset/ETHPy150Open RoseOu/flasky/venv/lib/python2.7/site-packages/sqlalchemy/testing/assertions.py/global_cleanup_assertions