Use assert() functions in the unit tests for the sake of standardization

This commit is contained in:
Bruno dos Santos de Araujo 2010-02-18 16:18:33 -04:00 • committed by Marcelo Lira
commit fc68cd2248
2 changed files with 11 additions and 8 deletions

View file

@ -2,7 +2,8 @@
import unittest
from PySide import QtGui, QtCore
from PySide import QtCore
from PySide import QtGui
from helper import UsesQApplication
class Item(QtGui.QGraphicsItem):
@ -21,8 +22,8 @@ class Item(QtGui.QGraphicsItem):
class QGraphicsViewIsBlockedTest(UsesQApplication):
def testIsBlockedByModalPanel(self):
item = Item()
item.isBlockedByModalPanel()
(bool, object) = Item().isBlockedByModalPanel()
self.assertFalse(bool)
if __name__ == "__main__":
unittest.main()