old_contents: #!/usr/bin/python
  
  import unittest
  
  from PySide import QtCore
  from PySide import QtGui
  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):
          (bool, object) = Item().isBlockedByModalPanel()
          self.assertFalse(bool)
  
  if __name__ == "__main__":
      unittest.main()
  
new_contents: #!/usr/bin/python
  
  import unittest
  
  from PySide import QtCore
  from PySide import QtGui
  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):
          (first, second) = Item().isBlockedByModalPanel()
          self.assertFalse(first)
  
  if __name__ == "__main__":
      unittest.main()
  
subject: Replace reserved words at qgraphicsitem_isblocked_test.py