Esempio n. 1
0
    def test_minspareservers_set6(self):
        test_list = []

        line = DirectiveInfo(DirectiveLine("MinSpareServers", ["11"]), 0,
                             'file.txt')
        test_list.append(line)

        auditor = ApacheConfigAuditor(test_list)
        self.assertFalse(auditor.minspareservers_set())
Esempio n. 2
0
    def test_minspareservers_set1(self):
        test_list = []

        auditor = ApacheConfigAuditor(test_list)
        self.assertTrue(auditor.minspareservers_set())