def NoInterfaceWIFIReader(self): wifireader = WifiReader(None, None) wifireader.request = {'identifier1':'Nonsense bla bla'} wifireader.measure() assert wifireader.request['error'] == 500 assert wifireader.request['errortext'] == 'could not find interface with IP, aborting measurement'
def loInterfaceWIFIReader(self): wifireader = WifiReader(None, None) wifireader.request = {'identifier1':'127.0.0.1'} wifireader.measure() assert wifireader.request['error'] == 530 assert wifireader.request['errortext'] == 'This is not a Wireless Interface'