(cls)
| 89 | |
| 90 | @classmethod |
| 91 | def has_a2md(cls): |
| 92 | d = os.path.dirname(inspect.getfile(HttpdTestEnv)) |
| 93 | config = ConfigParser(interpolation=ExtendedInterpolation()) |
| 94 | config.read(os.path.join(d, 'config.ini')) |
| 95 | bin_dir = config.get('global', 'bindir') |
| 96 | a2md_bin = os.path.join(bin_dir, 'a2md') |
| 97 | return os.path.isfile(a2md_bin) |
| 98 | |
| 99 | def __init__(self, pytestconfig=None): |
| 100 | super().__init__(pytestconfig=pytestconfig) |