

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

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