blob: 4e4e28704690cfcfdca916eb7fc351a3a610948c [file] [log] [blame]
#!/usr/bin/python2.7
"""Tests for ifstats_skids."""
import ifstats_skids
from wvtest import wvtest
@wvtest.wvtest
def ParseSavedStatusWireless():
with open('testdata/skids/status_wireless.html') as status_wireless:
text = status_wireless.read()
res = ifstats_skids.ParseStatusWireless(text)
wvtest.WVPASSEQ(res, {
'Wireless Band': '802.11ac',
'AP Mac Address (BSSID)': '00:26:86:F0:22:C9',
'Bytes Transmitted': '193033536',
'Device Mode': 'Station (STA)',
'Packets Received Successfully': '12351163',
'Association Status': 'Associated',
'Bandwidth': '80 MHz',
'RSSI': '-20',
'Packets Transmitted Successfully': '9372546',
'Bytes Received': '2814237224',
'Channel': '108'
})
if __name__ == '__main__':
wvtest.wvtest_main()