

def test_delif(br1):
    cmd = (b'brctl show ' + br1.name)
    br1.addif(b'eth1')
    check_output(cmd, substr=[b'eth1'])
    br1.delif(b'eth1')
    check_output(cmd, not_substr=[b'eth1'])

dataset/ETHPy150Open rlisagor/pynetlinux/tests/test_brctl.py test_delif/original