

def test_listif(br1):
    br1.addif(b'eth1')
    br1.addif(b'eth2')
    expected = {b'eth1', b'eth2'}
    actual = set(br1.listif())
    assert (expected == actual)

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