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

« back to all changes in this revision

Viewing changes to tests/QtCore/qsize_test.py

  • Committer: Bazaar Package Importer
  • Author(s): Didier Raboud
  • Date: 2010-09-27 21:01:06 UTC
  • mfrom: (1.2.1 upstream) (6.1.3 experimental)
  • Revision ID: james.westby@ubuntu.com-20100927210106-m1nrq8vmd3exqb9o
Tags: 0.4.1-0ubuntu1
* New 0.4.1 upstream release. (LP: #648612)
  - Add some 0.4.1 symbols.

* Patches:
  - u_c130273_fix_py25_QtScript_property.patch
    Remove, was from upstream.
  - u_20e226b_fix_missing_qcoreapplication_arguments_method.patch
    Remove, was from upstream.
  - u_268bf77_fixed_signal_signature_parser.patch
    Remove, was from upstream.
  + libPythonVersionPostfix.patch: Refresh
  + usePySpecificShiboken.patch: Refresh
  + lessBuildVerbosity.patch: Refresh

* Bump the B-D chain versions.
* Make sure the private.py is installed in QtCore module.
* Build against Qt 4.7.
  - Add libqtwebkit-dev
  - Drop QtMultimedia module.
  - Add the QtDeclarative package.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/python
 
2
'''Unit tests for QSize'''
 
3
 
 
4
import unittest
 
5
 
 
6
from PySide.QtCore import QSize
 
7
 
 
8
class QSizeOperator(unittest.TestCase):
 
9
    def testOperatorMultiply(self):
 
10
        #QSize operator * float
 
11
        # bug 131
 
12
        a = QSize(1, 1)
 
13
        x = a * 3.4
 
14
        self.assertEqual(QSize(3, 3), x)
 
15
 
 
16
    def testOperatorRevertedMultiply(self):
 
17
        #QSize operator * float, reverted
 
18
        # bug 132
 
19
        a = QSize(1, 1)
 
20
        x = 3.4 * a
 
21
        self.assertEqual(QSize(3, 3), x)
 
22
 
 
23
 
 
24
if __name__ == '__main__':
 
25
    unittest.main()
 
26