#NEWLINE# def test_size_returns_a_tuple_for_a_tty( ) : #NEWLINE# #INDENT# ( fd , __ ) = pty . openpty ( ) #NEWLINE# fd = os . fdopen ( fd ) #NEWLINE# util . set_pty_size ( fd , ( 43 , 120 ) ) #NEWLINE# expect ( tty . size ( fd ) ) . to ( equal ( ( 43 , 120 ) ) )