~ubuntu-branches/ubuntu/oneiric/pyside/oneiric

« back to all changes in this revision

Viewing changes to tests/QtCore/setprop_on_ctor_test.py

  • Committer: Bazaar Package Importer
  • Author(s): Didier Raboud
  • Date: 2010-10-19 22:52:14 UTC
  • mfrom: (1.1.4 upstream)
  • mto: (13.1.1 sid)
  • mto: This revision was merged to the branch mainline in revision 8.
  • Revision ID: james.westby@ubuntu.com-20101019225214-0s9fbpz12x3962qa
Tags: upstream-0.4.2
ImportĀ upstreamĀ versionĀ 0.4.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/python
 
2
import unittest
 
3
from PySide.QtCore import *
 
4
 
 
5
 
 
6
class SetPropOnCtorTest(unittest.TestCase):
 
7
    def testIt(self):
 
8
        obj = QEventTransition(targetStates = [QState()])
 
9
        self.assertEqual(len(obj.targetStates()), 1);
 
10
 
 
11
if __name__ == '__main__':
 
12
    unittest.main()