

@with_protocol
def test_switchport_mode_failure(self, t):
    enable(t)
    t.write('configure')
    t.readln('')
    t.read('my_switch(config)#')
    t.write('interface ethernet 1/g1')
    t.readln('')
    t.read('my_switch(config-if-1/g1)#')
    t.write('switchport mode shizzle')
    t.readln('                                         ^')
    t.readln("% Invalid input detected at '^' marker.")
    t.readln('')
    t.read('my_switch(config-if-1/g1)#')
    t.write('exit')
    self.readln('')
    t.read('my_switch(config)#')
    t.write('exit')
    t.readln('')
    t.read('my_switch#')

dataset/ETHPy150Open internap/fake-switches/tests/dell/test_configure_interface.py DellConfigureInterfaceTest.test_switchport_mode_failure/VarMisuse@104/192 `t`->`self`