release the key

This commit is contained in:
Andreas Preikschat 2013-05-08 22:13:33 +02:00
parent 7e41362ca2
commit 4ee6d014ff

View File

@ -52,7 +52,7 @@ class TestMainWindow(TestCase):
# WHEN: Press the shortcut.
QtTest.QTest.keyPress(self.main_window, QtCore.Qt.Key_F, QtCore.Qt.ControlModifier)
QtTest.QTest.keyPress(self.main_window, QtCore.Qt.Key_F, QtCore.Qt.ControlModifier)
QtTest.QTest.keyRelease(self.main_window, QtCore.Qt.Key_F, QtCore.Qt.ControlModifier)
# THEN: The on_focus method should have been called.
mocked_current_widget.on_focus.assert_called_with()