'Init entries return accurate LinuxServiceInformation values.'

def testParseLSBInit(self):

    configs = parsers_test_lib.GenInit('sshd', 'OpenBSD    Secure    Shell    server')
    (stats, files) = parsers_test_lib.GenTestData(configs, configs.values())
    parser = linux_service_parser.LinuxLSBInitParser()
    results = list(parser.ParseMultiple(stats, files, None))
    self.assertIsInstance(results[0], rdf_client.LinuxServiceInformation)
    result = results[0]
    self.assertEqual('sshd', result.name)
    self.assertEqual('OpenBSD    Secure    Shell    server', result.description)
    self.assertEqual('INIT', result.start_mode)
    self.assertItemsEqual([2, 3, 4, 5], result.start_on)
    self.assertItemsEqual([1], result.stop_on)
    self.assertItemsEqual(['umountfs', 'umountnfs', 'sendsigs', 'rsyslog', 'sysklogd', 'syslog-ng', 'dsyslog', 'inetutils-syslogd'], result.start_after)
    self.assertItemsEqual(['rsyslog', 'sysklogd', 'syslog-ng', 'dsyslog', 'inetutils-syslogd'], result.stop_after)
