def test_install_capability_with_extras(self):
        mock = MagicMock()
        with patch.dict(dism.__salt__, {'cmd.run_all': mock}):
            dism.install_capability("test", "life", True)
            mock.assert_called_once_with('DISM /Online /Add-Capability /CapabilityName:test /Source:life /LimitAccess')
Test installing a capability with DISM
dataset/ETHPy150Open saltstack/salt/tests/unit/modules/win_dism_test.py/DISMTestCase.test_install_capability_with_extras