aboutsummaryrefslogtreecommitdiffstats
path: root/tests/phonon
diff options
context:
space:
mode:
authorrenatofilho <renato.filho@openbossa.org>2010-09-15 17:40:29 -0300
committerrenatofilho <renato.filho@openbossa.org>2010-09-15 17:47:57 -0300
commitf92262928a6ac0463d4fb3fe52e8650fd484fbdc (patch)
treead6a43da22fc2f6029577a9f4a1900312dea4ac9 /tests/phonon
parent09e087f0bd9b38b59cc738589e216e95c5aa2211 (diff)
Created unittest for bug 328.
Reviewer: Hugo Parente Lima <hugo.pl@gmail.com> Luciano Wolf <luciano.wolf@openbossa.org>
Diffstat (limited to 'tests/phonon')
-rw-r--r--tests/phonon/CMakeLists.txt1
-rw-r--r--tests/phonon/bug_328.py18
2 files changed, 19 insertions, 0 deletions
diff --git a/tests/phonon/CMakeLists.txt b/tests/phonon/CMakeLists.txt
index 1174709a2..c2b939ed9 100644
--- a/tests/phonon/CMakeLists.txt
+++ b/tests/phonon/CMakeLists.txt
@@ -1,2 +1,3 @@
PYSIDE_TEST(basic_playing_test.py)
+PYSIDE_TEST(bug_328.py)
PYSIDE_TEST(capabilities_test.py)
diff --git a/tests/phonon/bug_328.py b/tests/phonon/bug_328.py
new file mode 100644
index 000000000..4171b3f53
--- /dev/null
+++ b/tests/phonon/bug_328.py
@@ -0,0 +1,18 @@
+#!/usr/bin/python
+
+from PySide import QtCore, QtGui
+from PySide.phonon import Phonon
+import unittest
+
+class TestBug(unittest.TestCase):
+ def myCB(self):
+ pass
+
+ def testForNotifierSignals(self):
+ # this test only check if the signals are present
+ notifier = Phonon.BackendCapabilities.Notifier()
+ notifier.capabilitiesChanged.connect(self.myCB)
+ notifier.availableAudioOutputDevicesChanged.connect(self.myCB)
+
+ self.assert_(True)
+