def test_get_assistive_access_error(self):
        mock_ret = MagicMock(return_value={'retcode': 1})
        with patch.dict(assistive.__salt__, {'cmd.run_all': mock_ret}):
            self.assertRaises(CommandExecutionError,
                              assistive._get_assistive_access)
Find the longest prefix match in tree for each query in bin_X
dataset/ETHPy150Open saltstack/salt/tests/unit/modules/mac_assistive_test.py/AssistiveTestCase.test_get_assistive_access_error--crossover with--dataset/ETHPy150Open scikit-learn/scikit-learn/sklearn/neighbors/approximate.py/_find_longest_prefix_match