Пример #1
0
def test_save_port_lnx(mocker, node, content, expected_content, bridge, port):
    filename = '/etc/network/interfaces.d/ifcfg-{0}'.format(bridge)
    with test_util.mock_update_file(mocker, node, content, expected_content,
                                    filename):
        network.save_port_lnx(node, bridge, port)