This commit is contained in:
Tomas Groth 2015-03-30 15:31:41 +02:00
parent 0e6cff913a
commit 3f8a7975ee
1 changed files with 1 additions and 0 deletions

View File

@ -126,6 +126,7 @@ class TestPowerpointDocument(TestCase, TestMixin):
instance = PowerpointDocument(self.mock_controller, self.mock_presentation)
instance.presentation = MagicMock()
instance.presentation.SlideShowWindow.View.GotoSlide = MagicMock(side_effect=pywintypes.com_error('1'))
instance.index_map[42] = 42
# WHEN: Calling goto_slide which will throw an exception
instance.goto_slide(42)