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
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
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