def no_setting_conf_directly_in_tests(logical_line, filename):
    if 'nova/tests/' in filename:
        res = conf_attribute_set_re.match(logical_line)
        if res:
            yield (0, "N320: Setting CONF.* attributes directly in tests is "
                      "forbidden. Use self.flags(option=value) instead")
Check for setting CONF.* attributes directly in tests
dataset/ETHPy150Open BU-NU-CLOUD-SP16/Trusted-Platform-Module-nova/nova/hacking/checks.py/no_setting_conf_directly_in_tests