File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -487,7 +487,6 @@ def test_get_interfaces(self):
487487
488488 def test_get_interfaces_settings (self ):
489489 instance = Instance (self .client , 124 )
490-
491490 iface_settings = instance .interfaces_settings
492491
493492 assert iface_settings .network_helper
@@ -505,6 +504,25 @@ def test_get_interfaces_settings(self):
505504 456 ,
506505 ]
507506
507+ def test_update_interfaces_settings (self ):
508+ instance = Instance (self .client , 124 )
509+ iface_settings = instance .interfaces_settings
510+
511+ iface_settings .network_helper = False
512+ iface_settings .default_route .ipv4_interface_id = 456
513+ iface_settings .default_route .ipv6_interface_id = 123
514+
515+ with self .mock_put ("/linode/instances/124/interfaces/settings" ) as m :
516+ iface_settings .save ()
517+
518+ assert m .call_data == {
519+ "network_helper" : False ,
520+ "default_route" : {
521+ "ipv4_interface_id" : 456 ,
522+ "ipv6_interface_id" : 123 ,
523+ }
524+ }
525+
508526
509527class DiskTest (ClientBaseCase ):
510528 """
You can’t perform that action at this time.
0 commit comments