def testParseMatchGroups(self):
    result = self.GetConfig()
    # Multiple Match groups found.
    self.assertEqual(2, len(result.matches))
    # Config options set per Match group.
    block_1, block_2 = result.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)
Removes a callback added with :meth:`add_callback`.
dataset/ETHPy150Open google/grr/grr/parsers/config_file_test.py/SshdConfigTest.testParseMatchGroups--crossover with--dataset/ETHPy150Open kivy/kivy/kivy/config.py/ConfigParser.remove_callback