#NEWLINE# def test_remove_contact_with_unknown_contact( self ) : #NEWLINE# #INDENT# '\n        Ensures that attempting to remove a non-existent contact results in\n        no change.\n        ' #NEWLINE# parent_node_id = '0xdeadbeef' #NEWLINE# r = RoutingTable ( parent_node_id ) #NEWLINE# contact1 = PeerNode ( PUBLIC_KEY , '192.168.0.1' , 9999 , self . version , 0 ) #NEWLINE# contact1 . network_id = '0xa' #NEWLINE# r . add_contact ( contact1 ) #NEWLINE# self . assertEqual ( len ( r . _buckets [ 0 ] ) , 1 ) #NEWLINE# result = r . remove_contact ( '0xb' ) #NEWLINE# self . assertEqual ( None , result ) #NEWLINE# self . assertEqual ( len ( r . _buckets [ 0 ] ) , 1 ) #NEWLINE# self . assertEqual ( contact1 , r . _buckets [ 0 ] . _contacts [ 0 ] )