Beispiel #1
0
 def testParse(self):
     parser = osx_launchd.DarwinPersistenceMechanismsParser()
     serv_info = rdf_client.OSXServiceInformation(label="blah",
                                                  args=["/blah/test", "-v"])
     results = list(
         parser.Parse(serv_info, None, rdf_paths.PathSpec.PathType.OS))
     self.assertEqual(results[0].pathspec.path, "/blah/test")
Beispiel #2
0
 def testParse(self):
     parser = osx_launchd.DarwinPersistenceMechanismsParser()
     serv_info = rdf_client.OSXServiceInformation(label="blah",
                                                  args=["/blah/test", "-v"])
     results = list(
         parser.ParseResponse(rdf_client.KnowledgeBase(), serv_info))
     self.assertEqual(results[0].pathspec.path, "/blah/test")