Created unit test to QKeySequence convertion to QVariant.
Reviewer: Marcelo Lira <marcelo.lira@openbossa.org>
Hugo Parente Lima <hugo.pl@gmail.com>
This commit is contained in:
parent
5349174a3c
commit
1f013e75e3
3 changed files with 20 additions and 0 deletions
17
tests/pysidetest/qvariant_test.py
Normal file
17
tests/pysidetest/qvariant_test.py
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
import unittest
|
||||
|
||||
from testbinding import TestObject
|
||||
from PySide.QtCore import Qt
|
||||
from PySide.QtGui import QKeySequence
|
||||
|
||||
from helper import UsesQApplication
|
||||
|
||||
class QVariantTest(UsesQApplication):
|
||||
|
||||
def testQKeySequenceQVariantOperator(self):
|
||||
# bug #775
|
||||
ks = QKeySequence(Qt.SHIFT, Qt.CTRL, Qt.Key_P, Qt.Key_R)
|
||||
self.assertEqual(TestObject.checkType(ks), 76)
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
Loading…
Add table
Add a link
Reference in a new issue