def METHOD_NAME(self, dir_name, check_name=None, local_graph_class=None):
    dir_path = os.path.join(os.path.dirname(os.path.realpath(self.test_file_path)),
                            f"resources/{dir_name}")
    assert os.path.exists(dir_path)
    if self.checks_dir:
        assert os.path.exists(self.checks_dir)
    found = False
    for root, d_names, f_names in itertools.chain(os.walk(self.real_graph_checks_path), os.walk(self.checks_dir)):
        for f_name in f_names:
            check_name = dir_name if check_name is None else check_name
            if f_name == f"{check_name}.yaml":
                found = True
                policy = load_yaml_data(f_name, root)
                assert policy is not None
                expected = load_yaml_data("expected.yaml", dir_path)
                assert expected is not None
                report = self.get_policy_results(dir_path, policy, local_graph_class)
                expected = load_yaml_data("expected.yaml", dir_path)
                expected_to_fail = expected.get('fail', [])
                expected_to_pass = expected.get('pass', [])
                expected_to_skip = expected.get('skip', [])
                expected_evaluated_keys = expected.get('evaluated_keys', [])
                self.assert_entities(expected_to_pass, report.passed_checks, True)
                self.assert_entities(expected_to_fail, report.failed_checks, False)
                self.assert_entities(expected_to_skip, report.skipped_checks, True)
                self.assert_evaluated_keys(expected_evaluated_keys, report.passed_checks + report.failed_checks)
    assert found