#NEWLINE# def test_screen( self ) : #NEWLINE# #INDENT# widget = self . create ( ) #NEWLINE# self . assertEqual ( widget [ 'screen' ] , '' ) #NEWLINE# try : #NEWLINE# #INDENT# display = os . environ [ 'DISPLAY' ] #NEWLINE# #UNINDENT# except KeyError : #NEWLINE# #INDENT# self . skipTest ( 'No $DISPLAY set.' ) #NEWLINE# #UNINDENT# self . checkInvalidParam ( widget , 'screen' , display , errmsg = "can't modify -screen option after widget is created" ) #NEWLINE# widget2 = self . create ( screen = display ) #NEWLINE# self . assertEqual ( widget2 [ 'screen' ] , display )