

@with_protocol
def test_show_run_vs_show_run_interface_same_output(self, t):
    enable(t)
    configuring_interface(t, 'ethernet 1/g1', do='shutdown')
    assert_interface_configuration(t, 'ethernet 1/g1', ['shutdown'])
    assert_running_config_contains_in_order(t, ['interface ethernet 1/g1', 'shutdown', 'exit', '!'])
    configuring_interface(t, 'ethernet 1/g1', do='no shutdown')
    assert_interface_configuration(t, 'ethernet 1/g1', [''])
    config = get_running_config(t)
    assert_that(config, is_not(has_item('interface ethernet 1/g1')))

dataset/ETHPy150Open internap/fake-switches/tests/dell/test_configure_interface.py DellConfigureInterfaceTest.test_show_run_vs_show_run_interface_same_output/original