aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuciano Wolf <luciano.wolf@openbossa.org>2010-07-13 14:15:35 -0300
committerLuciano Wolf <luciano.wolf@openbossa.org>2010-07-13 16:19:57 -0300
commit95c7699ae37c0c4a10d606405230000cfae99bde (patch)
tree368ba419f2c0002b8b0758b93588f270047b11b1
parente2056540d55033e8415246c2d17d9750bd30c1f0 (diff)
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.py3
-rw-r--r--tests/QtXml/qxmlsimplereader_test.py1
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 441037585..b87dd4db7 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 6c4d3f4ea..aaaf45a48 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()