#NEWLINE# def setUp( self ) : #NEWLINE# #INDENT# self . reactor = mock_twisted . MockReactorTime ( ) #NEWLINE# self . default_op_timeout = 3 #NEWLINE# self . echo_op_period = 5 #NEWLINE# self . peerproto = mock_ofproto . MockOpenflowProtocolHandler ( ) #NEWLINE# self . peer_vendor_handler = mock_vendor . MockVendorHandler ( ) #NEWLINE# self . peerproto . vendor_handlers = ( self . peer_vendor_handler , ) #NEWLINE# self . peer_vendor_handler . protocol = weakref . ref ( self . peerproto ) #NEWLINE# self . proto = ofprotoops . OpenflowProtocolOperations ( ) #NEWLINE# self . vendor_handler = mock_vendor . MockVendorHandler ( ) #NEWLINE# self . proto . vendor_handlers = ( host_address . vendor_handler , ) #NEWLINE# self . vendor_handler . protocol = weakref . ref ( self . proto ) #NEWLINE# self . proto . reactor = self . reactor #NEWLINE# self . proto . default_op_timeout = self . default_op_timeout #NEWLINE# self . proto . echo_op_period = self . echo_op_period #NEWLINE# host_address = twisted . internet . address . IPv4Address ( 'TCP' , '192.168.1.1' , '14123' ) #NEWLINE# peer_address = twisted . internet . address . IPv4Address ( 'TCP' , '192.168.1.2' , '14567' ) #NEWLINE# self . proto . transport = mock_ofproto . LoopbackTransport ( self . peerproto , host_address , peer_address ) #NEWLINE# self . peerproto . transport = mock_ofproto . LoopbackTransport ( self . proto , peer_address , host_address ) #NEWLINE# self . peerproto . connectionMade ( )