mozilla/gaia-ui-tests — pull request #13 by bebef1987 (2012-11-19 12:16:05+00:00)
Title: Wifi api for future tests 

tested with something like:

from gaiatest import GaiaTestCase
import time

class TestWifi(GaiaTestCase):

def setUp(self):

GaiaTestCase.setUp(self)

# unlock the lockscreen if it's locked
self.assertTrue(self.lockscreen.unlock())

def test_wifi(self):
self.data_layer.enable_wifi()
time.sleep(5)
self.data_layer.connect_to_wifi('Mozilla Guest')
time.sleep(5)
self.data_layer.forget_wifi('Mozilla Guest')
time.sleep(5)
self.data_layer.disable_wifi()

def tearDown(self):

# close the app
if hasattr(self, 'app'):
self.apps.kill(self.app)

GaiaTestCase.tearDown(self)