def testParseServices(self):
    services = {s.name: s for s in self.results if isinstance
                (s, rdf_client.LinuxServiceInformation)}
    self.assertEqual(5, len(services))
    self.assertItemsEqual(["single", "ssh", "ntp", "ufw", "firewall"], services)
    self.assertItemsEqual([2], services["ssh"].start_on)
    self.assertItemsEqual([1, 6], services["ssh"].stop_on)
    self.assertTrue(services["ssh"].starts)
    self.assertItemsEqual([1], services["firewall"].start_on)
    self.assertTrue(services["firewall"].starts)
SysV init links return accurate LinuxServiceInformation values.
dataset/ETHPy150Open google/grr/grr/parsers/linux_service_parser_test.py/LinuxSysVInitParserTest.testParseServices