#NEWLINE# @ Xephyr ( False , MaxConfig ( ) ) #NEWLINE# def test_closing_notification( self ) : #NEWLINE# #INDENT# notification1 = self . testWindow ( 'notification1' ) #NEWLINE# self . c . window . toggle_floating ( ) #NEWLINE# self . testWindow ( 'one' ) #NEWLINE# self . testWindow ( 'two' ) #NEWLINE# self . testWindow ( 'three' ) #NEWLINE# self . c . layout . up ( ) #NEWLINE# assert ( self . c . window . info ( ) [ 'name' ] == 'two' ) , self . c . window . info ( ) [ 'name' ] #NEWLINE# self . kill ( notification1 ) #NEWLINE# assert ( self . c . window . info ( ) [ 'name' ] == 'two' ) , self . c . window . info ( ) [ 'name' ] #NEWLINE# self . c . layout . down ( ) #NEWLINE# notification2 = self . testWindow ( 'notification2' ) #NEWLINE# self . c . window . toggle_floating ( ) #NEWLINE# temp = self . testWindow ( 'temp' ) #NEWLINE# self . c . layout . up ( ) #NEWLINE# self . c . layout . up ( ) #NEWLINE# self . kill ( temp ) #NEWLINE# assert ( self . c . window . info ( ) [ 'name' ] == 'two' ) , self . c . window . info ( ) [ 'name' ] #NEWLINE# self . kill ( notification2 ) #NEWLINE# assert ( self . c . window . info ( ) [ 'name' ] == 'two' ) , self . c . window . info ( ) [ 'name' ] #NEWLINE# self . c . layout . down ( ) #NEWLINE# notification3 = self . testWindow ( 'notification3' ) #NEWLINE# self . c . window . toggle_floating ( ) #NEWLINE# four = self . testWindow ( 'four' ) #NEWLINE# five = self . testWindow ( 'five' ) #NEWLINE# self . c . layout . up ( ) #NEWLINE# self . c . layout . up ( ) #NEWLINE# self . c . layout . up ( ) #NEWLINE# assert ( self . c . window . info ( ) [ 'name' ] == 'two' ) , self . c . window . info ( ) [ 'name' ] #NEWLINE# self . kill ( notification3 ) #NEWLINE# assert ( self . c . window . info ( ) [ 'name' ] == 'two' ) , self . c . window . info ( ) [ 'name' ]