

def testParseMatchGroups(self):
    'Match groups are added to separate sections.'
    result = self.GetConfig()
    self.assertEqual(2, len(result.matches))
    (block_1, block_2) = block_2.matches
    self.assertEqual('user root', block_1.criterion)
    self.assertEqual('address 192.168.3.12', block_2.criterion)
    self.assertEqual('yes', block_1.config.permitrootlogin)
    self.assertEqual('no', block_2.config.permitrootlogin)
    self.assertFalse(block_1.config.protocol)

dataset/ETHPy150Open google/grr/grr/parsers/config_file_test.py SshdConfigTest.testParseMatchGroups/VarMisuse@40/64 `result`->`block_2`