diff options
author | Hugo Parente Lima <hugo.pl@gmail.com> | 2011-05-03 19:10:01 -0300 |
---|---|---|
committer | Hugo Parente Lima <hugo.pl@gmail.com> | 2012-03-08 16:54:18 -0300 |
commit | a445a69facd5a01697f6c696eccaf660968e077e (patch) | |
tree | 6b64163e23f9b64f66b9f4ca3dc6f943ac12e83d /tests | |
parent | 4b5a6f760f3f2f9e4bc97cba8c080bb58c204353 (diff) |
Fix bug 786 - "There's no __eq__ for all classes inherited from ObjectDescription<T> due to an Apiextractor bug."
Reviewer: Lauro Moura <lauro.neto@openbossa.org>
Renato Araújo <renato.filho@openbossa.org>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/phonon/CMakeLists.txt | 1 | ||||
-rw-r--r-- | tests/phonon/bug_786.py | 21 |
2 files changed, 22 insertions, 0 deletions
diff --git a/tests/phonon/CMakeLists.txt b/tests/phonon/CMakeLists.txt index 85675155d..b325b5972 100644 --- a/tests/phonon/CMakeLists.txt +++ b/tests/phonon/CMakeLists.txt @@ -4,5 +4,6 @@ if (NOT WIN32 OR NOT ${QTVERSION} VERSION_EQUAL 4.7.1) PYSIDE_TEST(basic_playing_test.py) endif() PYSIDE_TEST(bug_328.py) +PYSIDE_TEST(bug_786.py) PYSIDE_TEST(capabilities_test.py) PYSIDE_TEST(qobjectdescription_test.py) diff --git a/tests/phonon/bug_786.py b/tests/phonon/bug_786.py new file mode 100644 index 000000000..b1e0070ad --- /dev/null +++ b/tests/phonon/bug_786.py @@ -0,0 +1,21 @@ +import unittest +from PySide.QtGui import * +from PySide.phonon import * + + +class TestBug786 (unittest.TestCase): + + def testIt(self): + app = QApplication([]) + devices = Phonon.BackendCapabilities.availableAudioOutputDevices() + if len(devices) > 1: + self.assertNotEqual(devices[0], devices[1]) + self.assertEqual(devices[0], devices[0]) + + effects = Phonon.BackendCapabilities.availableAudioEffects() + if len(effects) > 1: + self.assertNotEqual(effects[0], effects[1]) + self.assertEqual(effects[0], effects[0]) + +if __name__ == '__main__': + unittest.main() |