#NEWLINE# def test_get_subwindow( self ) : #NEWLINE# #INDENT# subwin = self . win . get_subwindow ( 2.7 , 5.4 ) #NEWLINE# self . assertAlmostEqual ( subwin . absolute_start , 2.8 ) #NEWLINE# self . assertAlmostEqual ( subwin . absolute_end , 5.4 ) #NEWLINE# self . assertEqual ( len ( subwin . windows ) , 3 ) #NEWLINE# subwin = self . win . get_subwindow ( 2.2 , 3.1 ) #NEWLINE# self . assertAlmostEqual ( subwin . absolute_start , 2.2 ) #NEWLINE# self . assertAlmostEqual ( subwin . absolute_end , 3.0 ) #NEWLINE# self . assertEqual ( len ( subwin . windows ) , 1 ) #NEWLINE# subwin = self . win . get_subwindow ( 5.1 , 6.1 ) #NEWLINE# self . assertAlmostEqual ( subwin . absolute_start , 5.1 ) #NEWLINE# self . assertAlmostEqual ( subwin . absolute_end , 6.1 ) #NEWLINE# self . assertEqual ( len ( subwin . windows ) , 1 ) #NEWLINE# subwin = self . win . get_subwindow ( 2.2 , 7.0 ) #NEWLINE# self . assertAlmostEqual ( subwin . absolute_start , 2.2 ) #NEWLINE# self . assertAlmostEqual ( subwin . absolute_end , 7.0 ) #NEWLINE# self . assertEqual ( len ( self . windows ) , 3 ) #NEWLINE# subwin = self . win . get_subwindow ( 2.2 , 5.0 ) #NEWLINE# self . assertAlmostEqual ( subwin . absolute_start , 2.2 ) #NEWLINE# self . assertAlmostEqual ( subwin . absolute_end , 5.0 ) #NEWLINE# self . assertEqual ( len ( subwin . windows ) , 2 ) #NEWLINE# subwin = self . win . get_subwindow ( 2.0 , 4.2 ) #NEWLINE# self . assertAlmostEqual ( subwin . absolute_start , 2.0 ) #NEWLINE# self . assertAlmostEqual ( subwin . absolute_end , 4.2 ) #NEWLINE# self . assertEqual ( len ( subwin . windows ) , 2 ) #NEWLINE# subwin = self . win . get_subwindow ( 4.0 , 4.2 ) #NEWLINE# self . assertAlmostEqual ( subwin . absolute_start , 4.0 ) #NEWLINE# self . assertAlmostEqual ( subwin . absolute_end , 4.2 ) #NEWLINE# self . assertEqual ( len ( subwin . windows ) , 2 )