~ubuntu-branches/ubuntu/utopic/pyside/utopic

« back to all changes in this revision

Viewing changes to tests/pysidetest/list_signal_test.py

  • Committer: Bazaar Package Importer
  • Author(s): Didier Raboud
  • Date: 2011-02-18 18:01:00 UTC
  • mfrom: (1.2.3 upstream) (6.1.6 experimental)
  • Revision ID: james.westby@ubuntu.com-20110218180100-vaczjij7g08fzfme
Tags: 1.0.0~rc1-1
* New 1.0.0~rc1 upstream release
  - Bump the B-D chain versions:
    + apiextractor to 0.10.0-2~
    + generatorrunner to 0.6.6
    + shiboken to 1.0.0~rc1
* Update patches to ~rc1.
* debian/watch: update to handle Release Candidates too.
* Bump XS-Python-Version to >= 2.6.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# -*- coding: utf-8 -*-
 
2
 
 
3
import unittest
 
4
from testbinding import TestObject
 
5
from PySide.QtCore import QObject
 
6
 
 
7
class ListConnectionTest(unittest.TestCase):
 
8
 
 
9
    def childrenChanged(self, children):
 
10
        self._child = children[0]
 
11
 
 
12
    def testConnection(self):
 
13
        o = TestObject(0)
 
14
        c = QObject()
 
15
        c.setObjectName("child")
 
16
        self._child = None
 
17
        o.childrenChanged.connect(self.childrenChanged)
 
18
        o.addChild(c)
 
19
        self.assertEquals(self._child.objectName(), "child")
 
20
 
 
21
if __name__ == '__main__':
 
22
    unittest.main()
 
23