示例#1
0
def test_type_wrap():
    pdb = PeeringDB()
    net = pdb.type_wrap('net')
    net1 = net.get(1)
    assert net1
示例#2
0
def test_nonexistant_config():
    with pytest.raises(IOError):
        PeeringDB(conf_dir='nonexistant')
示例#3
0
def test_get():
    pdb = PeeringDB()
    net1 = pdb.get('net', 1)
    assert net1