예제 #1
0
def test_list_all_ifs():
    ifs = ifconfig.list_ifs(physical=False)
    expected = set([b'eth0', b'eth1', b'eth2', b'lo'])
    assert expected <= set(i.name for i in ifs)
예제 #2
0
def test_list_all_ifs():
    ifs = ifconfig.list_ifs(physical=False)
    expected = set([b'eth0', b'eth1', b'eth2', b'lo'])
    assert expected <= set(i.name for i in ifs)
예제 #3
0
def test_list_ifs_physical_only():
    ifs = ifconfig.list_ifs()
    expected = set([b'eth0', b'eth1', b'eth2'])
    assert set(i.name for i in ifs) == expected
예제 #4
0
def test_list_ifs_physical_only():
    ifs = ifconfig.list_ifs()
    expected = set([b'eth0', b'eth1', b'eth2'])
    assert set(i.name for i in ifs) == expected