'Xinetd entries return accurate LinuxServiceInformation values.'

def testParseXinetd(self):

    configs = parsers_test_lib.GenXinetd('telnet', 'yes')
    configs.update(parsers_test_lib.GenXinetd('forwarder', 'no'))
    (stats, files) = parsers_test_lib.GenTestData(configs, configs.values())
    parser = linux_service_parser.LinuxXinetdParser()
    results = list(parser.ParseMultiple(stats, files, None))
    self.assertEqual(2, len(results))
    self.assertItemsEqual(['forwarder', 'telnet'], [r.name for r in results])
    for rslt in results:
        self.assertFalse(rslt.start_on)
        self.assertFalse(rslt.stop_on)
        self.assertFalse(rslt.stop_after)
        if (rslt.name == 'telnet'):
            self.assertFalse(rslt.start_mode)
            self.assertFalse(rslt.start_after)
            self.assertFalse(rslt.starts)
        else:
            self.assertEqual('XINETD', str(rslt.start_mode))
            self.assertItemsEqual(['xinetd'], list(rslt.start_after))
            self.assertTrue(rslt.starts)
