Example #1
0
    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'
Example #2
0
 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'