From 51656f6024b1a105a2f409e812c7ddd36d4ec6be Mon Sep 17 00:00:00 2001 From: Duncan Murray Date: Mon, 7 Aug 2017 22:44:31 +0930 Subject: [PATCH] added test for scan SSID's, currently dummy data --- tests/test_context.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tests/test_context.py b/tests/test_context.py index b4d0e84d..27f35619 100644 --- a/tests/test_context.py +++ b/tests/test_context.py @@ -94,10 +94,16 @@ def test_08_phone(self): self.assertEqual(ph.inspect_phone(on_charge = False), 'Phone is being used') - def test_10_where_am_i(self): + def test_10_scan_for_ssids(self): + ssids = context.scan_for_ssids() + self.assertEqual(ssids, ['AcuteSoftware', 'Netcomm Duplicate Name', 'Some other SSID']) + + def test_11_where_am_i(self): location = context.where_am_i() self.assertEqual(location, 'Home') + + if __name__ == '__main__': unittest.main() \ No newline at end of file