diff options
author | Luciano Wolf <luciano.wolf@openbossa.org> | 2010-07-13 14:15:35 -0300 |
---|---|---|
committer | Luciano Wolf <luciano.wolf@openbossa.org> | 2010-07-13 16:19:57 -0300 |
commit | 95c7699ae37c0c4a10d606405230000cfae99bde (patch) | |
tree | 368ba419f2c0002b8b0758b93588f270047b11b1 | |
parent | e2056540d55033e8415246c2d17d9750bd30c1f0 (diff) | |
download | pyside-95c7699ae37c0c4a10d606405230000cfae99bde.tar.gz pyside-95c7699ae37c0c4a10d606405230000cfae99bde.tar.xz pyside-95c7699ae37c0c4a10d606405230000cfae99bde.zip |
Update tests to check native pointers (qchar *, void *, ...).
Reviewer: Renato Araújo <renato.filho@openbossa.org>
Marcelo Lira <marcelo.lira@openbossa.org>
-rw-r--r-- | tests/QtCore/qobject_connect_notify_test.py | 3 | ||||
-rw-r--r-- | tests/QtXml/qxmlsimplereader_test.py | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/tests/QtCore/qobject_connect_notify_test.py b/tests/QtCore/qobject_connect_notify_test.py index 4410375..b87dd4d 100644 --- a/tests/QtCore/qobject_connect_notify_test.py +++ b/tests/QtCore/qobject_connect_notify_test.py @@ -14,9 +14,11 @@ class Obj(QObject): QObject.__init__(self) self.con_notified = False self.dis_notified = False + self.signal = "" def connectNotify(self, signal): self.con_notified = True + self.signal = signal def disconnectNotify(self, signal): self.dis_notified = True @@ -39,6 +41,7 @@ class TestQObjectConnectNotify(UsesQCoreApplication): receiver = QObject() sender.connect(SIGNAL("destroyed()"), receiver, SLOT("deleteLater()")) self.assert_(sender.con_notified) + self.assertEqual(sender.signal, SIGNAL("destroyed()")) sender.disconnect(SIGNAL("destroyed()"), receiver, SLOT("deleteLater()")) self.assert_(sender.dis_notified) diff --git a/tests/QtXml/qxmlsimplereader_test.py b/tests/QtXml/qxmlsimplereader_test.py index 6c4d3f4..aaaf45a 100644 --- a/tests/QtXml/qxmlsimplereader_test.py +++ b/tests/QtXml/qxmlsimplereader_test.py @@ -28,6 +28,7 @@ class QXmlSimpleReaderTest(unittest.TestCase): reader = QXmlSimpleReader() prop, ok = reader.property('foo') self.assertEqual((prop, ok), (None, False)) + reader.setProperty('foo', 'Something') if __name__ == '__main__': unittest.main() |