def test__identifies_bonded_interfaces(self): self.createEthernetInterface('bond0', is_bond=True, bonded_interfaces=['eth0', 'eth1']) self.assertThat( get_bonded_interfaces('bond0', sys_class_net=self.tmp_sys_net), Equals(['eth0', 'eth1']))
def test__identifies_bonded_interfaces(self): self.createEthernetInterface( "bond0", is_bond=True, bonded_interfaces=["eth0", "eth1"] ) self.assertThat( get_bonded_interfaces("bond0", sys_class_net=self.tmp_sys_net), Equals(["eth0", "eth1"]), )