@patch('salt.minion.Matcher')
    def test_glob(self, mock_matcher):
        with patch.dict(match.__grains__, {'id': 101}):

            mock_matcher.side_effect = MagicMock()
            with patch.object(mock_matcher, 'glob_match', MagicMock()):
                self.assertTrue(match.glob('tgt'))

            mock_matcher.side_effect = MagicMock(return_value='B')
            self.assertFalse(match.glob('tgt'))
Called after each PDU sent.
dataset/ETHPy150Open saltstack/salt/tests/unit/modules/match_test.py/MatchTestCase.test_glob--crossover with--dataset/ETHPy150Open JoelBender/bacpypes/tests/test_utilities/trapped_classes.py/TrappedState.after_send