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

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

            mock_matcher.side_effect = MagicMock(return_value='B')
            self.assertFalse(match.list_('tgt'))
Return appropriate mode for the tests.
dataset/ETHPy150Open saltstack/salt/tests/unit/modules/match_test.py/MatchTestCase.test_list_--crossover with--dataset/ETHPy150Open rizar/attention-lvcsr/libs/Theano/theano/tensor/nnet/tests/test_sigm.py/T_sigmoid_opts.get_mode