示例#1
0
def test_routerlist_csv():
    '''test routerlist.csv'''
    meta = {
        "file": "./routers/routerlist.csv",
        "header": True,
        "count": 2,
        "cols": [ds.isvalidhostname, ds.isvalidip]
    }
    result, err = ds.test_csvfile(meta)
    assert result, err
示例#2
0
def test_serverlist_csv():
    '''test serverlist.csv'''
    meta = {
        "file":
        "./servers/serverlist.csv",
        "header":
        True,
        "count":
        5,
        "cols": [
            ds.isvalidhostname, ds.isvalidmac, ds.isvalidiporempty,
            ds.isvalidiporempty, ds.isuntested
        ]
    }
    result, err = ds.test_csvfile(meta)
    assert result, err
示例#3
0
def test_aplist_csv():
    '''test aplist.csv'''
    meta = {
        "file":
        "./aps/aplist.csv",
        "header":
        True,
        "count":
        10,
        "cols": [
            ds.isvalidhostname, ds.isuntested, ds.isvalidmac, ds.isvalidip,
            ds.isvalidwifi24chan, ds.isvalidwifi5chan, ds.isint,
            ds.isintorempty, ds.isintorempty, ds.isintorempty
        ]
    }
    result, err = ds.test_csvfile(meta)
    assert result, err