示例#1
0
def test_function_params():
    """
    Проверка имен и количества параметров
    """
    check_function_params(
        function=task_11_2.create_network_map, param_count=1, param_names=["filenames"]
    )
示例#2
0
def test_function_params():
    """
    Проверка имен и количества параметров
    """
    check_function_params(
        function=task_9_4.convert_config_to_dict,
        param_count=1,
        param_names=["config_filename"],
    )
示例#3
0
def test_function_params():
    """
    Проверка имен и количества параметров
    """
    check_function_params(
        function=task_11_1.parse_cdp_neighbors,
        param_count=1,
        param_names=["command_output"],
    )
示例#4
0
def test_function_params():
    """
    Проверка имен и количества параметров
    """
    check_function_params(
        function=task_9_2.generate_trunk_config,
        param_count=2,
        param_names=["intf_vlan_mapping", "trunk_template"],
    )
示例#5
0
def test_function_params():
    """
    Проверка имен и количества параметров
    """
    check_function_params(
        function=task_9_1a.generate_access_config,
        param_count=3,
        param_names=["intf_vlan_mapping", "access_template", "psecurity"],
    )
示例#6
0
def test_function_params():
    check_function_params(function=task_17_2a.generate_topology_from_cdp,
                          param_count=2,
                          param_names=['list_of_files', 'save_to_filename'])
    default_values = get_func_params_default_value(
        task_17_2a.generate_topology_from_cdp)
    assert default_values.get(
        'save_to_filename'
    ) == None, "У параметра save_to_filename значение по умолчанию должно быть None"
示例#7
0
def test_function_params():
    """
    Проверка имен и количества параметров
    """
    check_function_params(
        function=task_9_3.get_int_vlan_map,
        param_count=1,
        param_names=["config_filename"],
    )
示例#8
0
def test_function_params():
    """
    Проверка имен и количества параметров
    """
    check_function_params(
        function=task_19_3.send_commands,
        param_count=3,
        param_names=["device", "config", "show"],
    )
示例#9
0
def test_function_params():
    check_function_params(
        function=task_17_3a.generate_topology_from_cdp,
        param_count=2,
        param_names=["list_of_files", "save_to_filename"],
    )
    default_values = get_func_params_default_value(
        task_17_3a.generate_topology_from_cdp)
    assert (
        default_values.get("save_to_filename") == None
    ), "У параметра save_to_filename значение по умолчанию должно быть None"
示例#10
0
def test_function_params():
    check_function_params(function=task_9_2a.generate_trunk_config,
                          param_count=2, param_names=['intf_vlan_mapping', 'trunk_template'])
示例#11
0
def test_function_params():
    check_function_params(
        function=task_9_1a.generate_access_config,
        param_count=3,
        param_names=["intf_vlan_mapping", "access_template", "psecurity"],
    )
示例#12
0
def test_function_params():
    check_function_params(
        function=task_9_1a.generate_access_config,
        param_count=3,
        param_names=['intf_vlan_mapping', 'access_template', 'psecurity'])
示例#13
0
def test_function_params():
    check_function_params(function=task_11_1.parse_cdp_neighbors,
                          param_count=1, param_names=['command_output'])
示例#14
0
def test_function_params():
    check_function_params(function=task_14_1.generate_access_config,
                          param_count=1,
                          param_names=['intf_vlan_mapping'])
示例#15
0
def test_function_params():
    check_function_params(
        function=task_9_3.get_int_vlan_map,
        param_count=1,
        param_names=["config_filename"],
    )
示例#16
0
def test_function_params():
    check_function_params(function=task_11_2.create_network_map,
                          param_count=1,
                          param_names=['cfg_files'])
示例#17
0
def test_function_params():
    check_function_params(function=task_9_4.convert_config_to_dict,
                          param_count=1,
                          param_names=['config_filename'])
示例#18
0
def test_function_params():
    check_function_params(
        function=task_19_3.send_commands,
        param_count=3,
        param_names=["device", "config", "show"],
    )
示例#19
0
def test_function_params():
    check_function_params(
        function=task_9_2.generate_trunk_config,
        param_count=2,
        param_names=["intf_vlan_mapping", "trunk_template"],
    )
示例#20
0
def test_function_params():
    check_function_params(function=task_19_3.send_commands,
                          param_count=3,
                          param_names=['device', 'config', 'show'])