def test_symlinks_disabled2(self): test_list = [] line = DirectiveInfo(DirectiveLine("Options", ["None"]), 0, 'file.txt') test_list.append(line) auditor = ApacheConfigAuditor(test_list) self.assertTrue(auditor.symlinks_disabled())
def test_symlinks_disabled4(self): test_list = [] line = DirectiveInfo(DirectiveLine("Options", ["+FollowSymLinks"]), 0, 'file.txt') test_list.append(line) auditor = ApacheConfigAuditor(test_list) self.assertFalse(auditor.symlinks_disabled())
def test_symlinks_disabled1(self): test_list = [] auditor = ApacheConfigAuditor(test_list) self.assertFalse(auditor.symlinks_disabled())