#!/usr/bin/python

import unittest

from PySide import QtGui, QtCore
from helper import UsesQApplication

class Item(QtGui.QGraphicsItem):
    
    def __init__(self):
        QtGui.QGraphicsItem.__init__(self)

    def boundingRect(self):
        return QtCore.QRectF(0, 0, 100, 100)
    
    def paint(self, painter, option, widget):
        painter.setBrush(QtGui.QColor(255, 255, 255))
        painter.drawRect(0, 0, 100, 100)


class QGraphicsViewIsBlockedTest(UsesQApplication):

    def testIsBlockedByModalPanel(self):
        item = Item()
        item.isBlockedByModalPanel()

if __name__ == "__main__":
    unittest.main()

Add unit test for QGraphicsItem.isBlockedByModalPanel()
Add unit test for QGraphicsItem.isBlockedByModalPanel()
