def test_override_denied2(self): test_list = [] line = DirectiveInfo(DirectiveLine("<Directory", ["/>"]), 0, 'file.txt') test_list.append(line) line = DirectiveInfo(DirectiveLine("AllowOverride", ["All"]), 0, 'file.txt') test_list.append(line) line = DirectiveInfo(DirectiveLine("</Directory>", [""]), 0, 'file.txt') test_list.append(line) auditor = ApacheConfigAuditor(test_list) self.assertFalse(auditor.override_denied())
def test_override_denied1(self): test_list = [] auditor = ApacheConfigAuditor(test_list) self.assertFalse(auditor.override_denied())