#NEWLINE# def test_get_conversation_new_with_writing_packet( self ) : #NEWLINE# #INDENT# conversation_table = ConversationTable ( ) #NEWLINE# packet = packets . WriteRequestPacket ( 'stub filename' , 'stub mode' ) #NEWLINE# reactor = Reactor ( 'stub_socket' , 'stub_router' , conversation_table ) #NEWLINE# conversation = reactor . get_conversation ( '10.26.0.1' , 3942 , packet ) #NEWLINE# self . assertEqual ( len ( conversation ) , 1 ) #NEWLINE# self . assertTrue ( isinstance ( conversation , TFTPConversation ) )