#NEWLINE# def test__get_changed_ips_for_port_autoaddress_ipv6_pd_enabled( self ) : #NEWLINE# #INDENT# owner_not_router = constants . DEVICE_OWNER_DHCP #NEWLINE# new_ips = self . _prepare_ips ( expected_change . default_new_ips ) #NEWLINE# original = ( ( 'id-1' , '192.168.1.1' ) , ( 'id-5' , '2000:1234:5678::12FF:FE34:5678' ) ) #NEWLINE# original_ips = self . _prepare_ips ( original ) #NEWLINE# pd_subnet = { #NEWLINE# #INDENT# 'subnetpool_id' : constants . IPV6_PD_POOL_ID , #NEWLINE# 'ipv6_address_mode' : n_const . IPV6_SLAAC , #NEWLINE# 'ipv6_ra_mode' : n_const . IPV6_SLAAC , #NEWLINE# #UNINDENT# } #NEWLINE# self . mixin . _get_subnet = mock . Mock ( return_value = pd_subnet ) #NEWLINE# expected_change = self . mixin . Changes ( add = [ new_ips [ 1 ] ] , original = [ original_ips [ 0 ] ] , remove = [ original_ips [ 1 ] ] ) #NEWLINE# self . _test_get_changed_ips_for_port ( expected_change , original_ips , new_ips , owner_not_router )