def testParseSysctl(self):
    parser = linux_sysctl_parser.ProcSysParser()
    paths = ["/proc/sys/net/ipv4/ip_forward", "/proc/sys/kernel/printk"]
    vals = ["0", "3 4 1 3"]
    stats, files = self._GenTestData(paths, vals)
    results = parser.ParseMultiple(stats, files, None)
    self.assertEqual(1, len(results))
    self.assertTrue(isinstance(results[0], rdf_protodict.AttributedDict))
    self.assertEqual("0", results[0].net_ipv4_ip_forward)
    self.assertEqual(["3", "4", "1", "3"], results[0].kernel_printk)
Authenticate, authorize, and build service.
dataset/ETHPy150Open google/grr/grr/parsers/linux_sysctl_parser_test.py/ProcSysParserTest.testParseSysctl--crossover with--dataset/ETHPy150Open googledrive/PyDrive/pydrive/auth.py/GoogleAuth.Auth