def test_system_resume_wifi_on(self): print "[RunTest]: %s" % self.__str__() from testlib.em.settings import WifiSetting wifi = WifiSetting() wifi.switch_wifi("ON") stat_inc = self.s0ix.suspend_resume() assert stat_inc > 0, "Not enter S3" assert wifi.get_wifi_status()
def test_enter_s0i3_wifi_bt_gps_on(self): from testlib.em.settings import WifiSetting, BTSetting, LocationSetting wifi = WifiSetting() bt = BTSetting() gps = LocationSetting() wifi.switch_wifi("ON") bt.switch_bt("ON") gps.switch_GPS("ON") time.sleep(2) stat_inc = self.s0ix.suspend_resume() bt.switch_bt("OFF") gps.switch_GPS("OFF") assert stat_inc > 0, "Not enter S3"