diff options
author | Renato Araujo Oliveira Filho <renato.filho@openbossa.org> | 2010-12-22 16:14:47 -0300 |
---|---|---|
committer | Hugo Parente Lima <hugo.pl@gmail.com> | 2012-03-08 16:48:04 -0300 |
commit | 2734efb6b704c53bab64168be49ce06d6b5a03da (patch) | |
tree | b6f0464f4f23357199177609a21ea744e3d8cbaa /tests/pysidetest/list_signal_test.py | |
parent | d3b630e1682c89ee427964d81c32219c14863b1d (diff) |
Moved list_signal_test to pysidetest library.
This isolate the test case, and avoid other problems with X during the
buildbot compilation.
Reviewer: Lauro Moura <lauro.neto@openbossa.org>
Hugo Parente Lima <hugo.pl@gmail.com>
Diffstat (limited to 'tests/pysidetest/list_signal_test.py')
-rw-r--r-- | tests/pysidetest/list_signal_test.py | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/pysidetest/list_signal_test.py b/tests/pysidetest/list_signal_test.py new file mode 100644 index 000000000..36d3c21d2 --- /dev/null +++ b/tests/pysidetest/list_signal_test.py @@ -0,0 +1,23 @@ +# -*- coding: utf-8 -*- + +import unittest +from testbinding import TestObject +from PySide.QtCore import QObject + +class ListConnectionTest(unittest.TestCase): + + def childrenChanged(self, children): + self._child = children[0] + + def testConnection(self): + o = TestObject(0) + c = QObject() + c.setObjectName("child") + self._child = None + o.childrenChanged.connect(self.childrenChanged) + o.addChild(c) + self.assertEquals(self._child.objectName(), "child") + +if __name__ == '__main__': + unittest.main() + |