forked from openlp/openlp
pep8 fixes
This commit is contained in:
parent
57cd04a957
commit
79d3e95c32
@ -64,7 +64,7 @@ class TestShortcutform(TestCase, TestMixin):
|
|||||||
"""
|
"""
|
||||||
# GIVEN: A button.
|
# GIVEN: A button.
|
||||||
button = QtGui.QPushButton()
|
button = QtGui.QPushButton()
|
||||||
checked= True
|
checked = True
|
||||||
enabled = True
|
enabled = True
|
||||||
text = "new!"
|
text = "new!"
|
||||||
|
|
||||||
@ -72,7 +72,6 @@ class TestShortcutform(TestCase, TestMixin):
|
|||||||
with patch('PyQt4.QtGui.QPushButton.setChecked') as mocked_check_method:
|
with patch('PyQt4.QtGui.QPushButton.setChecked') as mocked_check_method:
|
||||||
self.form._adjust_button(button, checked, enabled, text)
|
self.form._adjust_button(button, checked, enabled, text)
|
||||||
|
|
||||||
|
|
||||||
# THEN: The button should be changed.
|
# THEN: The button should be changed.
|
||||||
self.assertEqual(button.text(), text, "The text should match.")
|
self.assertEqual(button.text(), text, "The text should match.")
|
||||||
mocked_check_method.assert_called_once_with(True)
|
mocked_check_method.assert_called_once_with(True)
|
||||||
|
Loading…
Reference in New Issue
Block a user