@patch('salt.modules.bower._check_valid_version',
           MagicMock(return_value=True))
    def test_list_packages_with_error(self):
        mock = MagicMock(return_value={'retcode': 1, 'stderr': 'error'})
        with patch.dict(bower.__salt__, {'cmd.run_all': mock}):
            self.assertRaises(
                CommandExecutionError,
                bower.list_,
                '/path/to/project')
Sends PreparedRequest object. Returns Response object.
dataset/ETHPy150Open saltstack/salt/tests/unit/modules/bower_test.py/BowerTestCase.test_list_packages_with_error--crossover with--dataset/ETHPy150Open BergWerkGIS/QGIS-CKAN-Browser/CKAN-Browser/request/adapters.py/HTTPAdapter.send