def run_once(self): tests = [ self._test_3gpp_no_roaming, self._test_3gpp_roaming, self._test_cdma ] for test in tests: test()
def run_tests(self, tests): """ Executes each of the test subparts in sequence. @param tests list of methods to run. """ for test in tests: self.test_name = test.__name__ test() self.stop_shill() self.erase_state()
def run_once(self): """Called by autotest to run this test.""" with test_environment.CellularPseudoMMTestEnvironment( pseudomm_args=({ 'family': '3GPP' }, )) as self.test_env: self._init() tests = [ self._test_temporary_registration_loss, self._test_permanent_registration_loss ] for test in tests: test()
def run_once(self): """Calls by autotest to run this test.""" self.test_env = test_environment.CellularPseudoMMTestEnvironment( pseudomm_args=({ 'family': '3GPP' }, )) with self.test_env, shill_context.ServiceAutoConnectContext( self.test_env.shill.find_cellular_service_object, False): self.pseudomm = pm_proxy.PseudoMMProxy.get_proxy() self.modem = self.pseudomm.get_modem() tests = [ self._test_provisioned, self._test_out_of_credits_at_start, self._test_out_of_credits_while_connected ] for test in tests: test()
def run_test(self, test_env, test): with test_env: try: test() finally: modem_utils.ClearGobiModemFaultInjection()