#NEWLINE# def test_start_when_raw( self ) : #NEWLINE# #INDENT# ( fd , __ ) = pty . openpty ( ) #NEWLINE# terminal = tty . Terminal ( os . fdopen ( fd ) , raw = True ) #NEWLINE# expect ( israw ( fd ) ) . to ( be_false ) #NEWLINE# terminal . start ( ) #NEWLINE# expect ( israw ( fd ) ) . to ( be_true )