Exemple #1
0
 def test_get_wifi_cell_no_adapter(self):
     self.adapter = False
     cell = hardware.get_wifi_cell()
     self.assertIsNone(cell)
Exemple #2
0
 def test_get_wifi_cell_disconnected(self):
     self.connected = False
     cell = hardware.get_wifi_cell()
     self.assertIsNone(cell.ssid)
     self.assertIsNone(cell.link_quality)
     self.assertIsNone(cell.signal_level)
Exemple #3
0
 def test_get_wifi_cell_connected(self):
     self.connected = True
     cell = hardware.get_wifi_cell()
     self.assertEqual(cell.ssid, "wifi_test_cell")
     self.assertEqual(cell.link_quality, 64)
     self.assertEqual(cell.signal_level, -36)
 def test_get_wifi_cell_no_adapter(self):
     self.adapter = False
     cell = hardware.get_wifi_cell()
     self.assertIsNone(cell)
 def test_get_wifi_cell_disconnected(self):
     self.connected = False
     cell = hardware.get_wifi_cell()
     self.assertIsNone(cell.ssid)
     self.assertIsNone(cell.link_quality)
     self.assertIsNone(cell.signal_level)
 def test_get_wifi_cell_connected(self):
     self.connected = True
     cell = hardware.get_wifi_cell()
     self.assertEqual(cell.ssid, "wifi_test_cell")
     self.assertEqual(cell.link_quality, 64)
     self.assertEqual(cell.signal_level, -36)