#NEWLINE# def setUp( self ) : #NEWLINE# #INDENT# self . negotiated = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# for asn4 in ( True , False ) : #NEWLINE# #INDENT# neighbor = FakeNeighbor ( ) #NEWLINE# neighbor . asn4 = asn4 #NEWLINE# capa = Capabilities ( ) . new ( neighbor , False ) #NEWLINE# capa [ Capability . CODE . MULTIPROTOCOL ] = neighbor . families ( ) #NEWLINE# routerid_1 = str ( neighbor . router_id ) #NEWLINE# routerid_2 = '.' . join ( ( str ( ( ( int ( _ ) + 1 ) % 250 ) ) for _ in str ( neighbor . router_id ) . split ( '.' , ( - 1 ) ) ) ) #NEWLINE# o1 = Open ( Version ( 4 ) , ASN ( neighbor . local_as ) , HoldTime ( 180 ) , RouterID ( routerid_1 ) , neighbor ) #NEWLINE# o2 = Open ( Version ( 4 ) , ASN ( neighbor . peer_as ) , HoldTime ( 180 ) , RouterID ( routerid_2 ) , capa ) #NEWLINE# negotiated = Negotiated ( neighbor ) #NEWLINE# negotiated . sent ( o1 ) #NEWLINE# negotiated . received ( o2 ) #NEWLINE# self . negotiated [ asn4 ] = negotiated