def test_installed_capability(self):
        expected = {
            'comment': "Capa2 was already installed.\n",
            'changes': {},
            'name': 'Capa2',
            'result': True
        }

        installed_mock = MagicMock(return_value=["Capa1", "Capa2"])
        install_mock = MagicMock()
        with patch.dict(dism.__salt__, {'dism.installed_capabilities': installed_mock,
                                        'dism.install_capability': install_mock}):
            out = dism.capability_installed('Capa2', 'somewhere', True)
            installed_mock.assert_called_once_with()
            assert not install_mock.called
            self.assertEqual(out, expected)
Sends a file asynchronously. Status of the request may be checked through
dataset/ETHPy150Open saltstack/salt/tests/unit/states/win_dism_test.py/DISMTestCase.test_installed_capability--crossover with--dataset/ETHPy150Open weblabdeusto/weblabdeusto/server/src/weblab/core/reservation_processor.py/ReservationProcessor.send_async_file