fix tests

This commit is contained in:
Tim Bentley 2014-05-03 20:32:19 +01:00
parent 89cbe8bc7d
commit f21d3cfa83
4 changed files with 4 additions and 4 deletions

View File

@ -171,4 +171,4 @@ class TestImageManager(TestCase, TestMixin):
self.lock.release()
# The sleep time is adjusted in the test case.
time.sleep(self.sleep_time)
return ''
return ''

View File

@ -125,4 +125,4 @@ class TestMedia(TestCase, TestMixin):
# THEN: the used_players should be an empty list, and the overridden player should be an empty string
self.assertEqual(['vlc', 'webkit', 'phonon'], used_players, 'Used players should be correct')
self.assertEqual('vlc,webkit,phonon', overridden_player, 'Overridden player should be a string of players')
self.assertEqual('vlc,webkit,phonon', overridden_player, 'Overridden player should be a string of players')

View File

@ -62,4 +62,4 @@ class TestHistoryComboBox(TestCase, TestMixin):
self.combo.addItem('test2')
# THEN: The list of items should contain both strings.
self.assertEqual(self.combo.getItems(), ['test1', 'test2'])
self.assertEqual(self.combo.getItems(), ['test1', 'test2'])

View File

@ -75,4 +75,4 @@ class TestShortcutform(TestCase, TestMixin):
# THEN: The button should be changed.
self.assertEqual(button.text(), text, "The text should match.")
mocked_check_method.assert_called_once_with(True)
self.assertEqual(button.isEnabled(), enabled, "The button should be disabled.")
self.assertEqual(button.isEnabled(), enabled, "The button should be disabled.")