Created unit test for bug #740.

Reviewer: Marcelo Lira <marcelo.lira@openbossa.org>
          Hugo Parente Lima <hugo.pl@gmail.com>
This commit is contained in:
Renato Filho 2011-04-13 18:28:04 -03:00
commit 94310a7b19
2 changed files with 14 additions and 0 deletions

13
tests/QtGui/bug_740.py Normal file
View file

@ -0,0 +1,13 @@
import unittest
from helper import UsesQApplication
from PySide.QtCore import QSize
from PySide.QtGui import QBitmap, QImage, QLabel
class TestQBitmap(UsesQApplication):
def testFromDataMethod(self):
dataBits = '\x38\x28\x38\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\xfe\xfe\x7c\x7c\x38\x38\x10\x10'
bim = QBitmap.fromData(QSize(8, 48), dataBits, QImage.Format_Mono) # missing function
if __name__ == '__main__':
unittest.main()