aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorrenato <renato.filho@openbossa.org>2010-05-31 17:33:13 -0300
committerrenato <renato.filho@openbossa.org>2010-05-31 17:33:13 -0300
commit3a79f868d1830e759c17d3f0e3dc176cb245d010 (patch)
tree6d8807a0fa4fd901b8bb0dcef8bbe889bee157ba /tests
parent1a235edc097e280ddee1d49ed836dbaa28399eb8 (diff)
Create unittest to pickselector.
Fixed pickselector return policy. Fixes bug #179
Diffstat (limited to 'tests')
-rw-r--r--tests/qtmaemo5/pickselector_test.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/qtmaemo5/pickselector_test.py b/tests/qtmaemo5/pickselector_test.py
new file mode 100644
index 000000000..013c1d40b
--- /dev/null
+++ b/tests/qtmaemo5/pickselector_test.py
@@ -0,0 +1,17 @@
+#!/usr/bin/python
+import unittest
+from PySide.QtMaemo5 import QMaemo5ListPickSelector, QMaemo5ValueButton
+
+from helper import UsesQApplication
+
+class PickSelectorTest(UsesQApplication):
+ def testOwnership(self):
+ pickselector = QMaemo5ListPickSelector()
+ button = QMaemo5ValueButton("test")
+ button.setPickSelector(pickselector)
+ del pickselector
+ self.assert_(button.pickSelector())
+
+if __name__ == '__main__':
+ unittest.main()
+