#NEWLINE# def test_reusing_connection( self ) : #NEWLINE# #INDENT# 'Test that reusing a connection returns same one.' #NEWLINE# conn_context = self . rpc . create_connection ( new = False ) #NEWLINE# conn1 = conn_context . connection #NEWLINE# conn_context . close ( ) #NEWLINE# conn_context = self . rpc . create_connection ( new = False ) #NEWLINE# conn2 = conn_context . connection #NEWLINE# conn_context . close ( ) #NEWLINE# self . assertEqual ( conn1 , conn_context )