#NEWLINE# def test_initialize_gateway_moves_wrong_ip( self ) : #NEWLINE# #INDENT# existing = '2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP>     mtu 1500 qdisc pfifo_fast state UNKNOWN qlen 1000\n    link/ether de:ad:be:ef:be:ef brd ff:ff:ff:ff:ff:ff\n    inet 192.168.0.1/24 brd 192.168.0.255 scope global eth0\n    inet6 dead::beef:dead:beef:dead/64 scope link\n    valid_lft forever preferred_lft forever\n' #NEWLINE# expected = [ ( 'sysctl' , '-n' , 'net.ipv4.ip_forward' ) , ( 'ip' , 'addr' , 'show' , 'dev' , 'eth0' , 'scope' , 'global' ) , ( 'ip' , 'route' , 'show' , 'dev' , 'eth0' ) , ( 'ip' , 'addr' , 'del' , '192.168.0.1/24' , 'brd' , '192.168.0.255' , 'scope' , 'global' , 'dev' , 'eth0' ) , ( 'ip' , 'addr' , 'add' , '192.168.1.1/24' , 'brd' , '192.168.1.255' , 'dev' , 'eth0' ) , ( 'ip' , 'addr' , 'add' , '192.168.0.1/24' , 'brd' , '192.168.0.255' , 'scope' , 'global' , 'dev' , 'eth0' ) , ( 'ip' , '-f' , 'inet6' , 'addr' , 'change' , '2001:db8::/64' , 'dev' , 'eth0' ) ] #NEWLINE# self . _test_initialize_gateway ( existing , expected )