Create unittest to pickselector.
Fixed pickselector return policy. Fixes bug #179
This commit is contained in:
parent
1a235edc09
commit
3a79f868d1
3 changed files with 28 additions and 1 deletions
17
tests/qtmaemo5/pickselector_test.py
Normal file
17
tests/qtmaemo5/pickselector_test.py
Normal file
|
|
@ -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()
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue