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>
23 lines
559 B
Python
23 lines
559 B
Python
# -*- 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()
|
|
|