Home
last modified time | relevance | path

Searched refs:test_env (Results 1 – 25 of 142) sorted by relevance

123456

/external/python/jinja/tests/
Dtest_imports.py12 def test_env(): function
27 def test_context_imports(self, test_env): argument
28 t = test_env.from_string('{% import "module" as m %}{{ m.test() }}')
30 t = test_env.from_string(
34 t = test_env.from_string(
38 t = test_env.from_string('{% from "module" import test %}{{ test() }}')
40 t = test_env.from_string(
44 t = test_env.from_string(
49 def test_import_needs_name(self, test_env): argument
50 test_env.from_string('{% from "foo" import bar %}')
[all …]
/external/autotest/client/site_tests/cellular_Smoke/
Dcellular_Smoke.py39 old_modem_info = self.test_env.modem.GetModemProperties()
42 device = self.test_env.shill.find_cellular_device_object()
46 service = self.test_env.shill.wait_for_cellular_service_object()
51 self.test_env.shill.connect_service_synchronous(
54 state = self.test_env.shill.get_dbus_property(
67 interface = self.test_env.shill.get_dbus_property(
86 self.test_env.shill.disconnect_service_synchronous(
91 new_modem_info = self.test_env.modem.GetModemProperties()
102 def run_once(self, test_env, connect_count=5, sleep_kludge=5, argument
104 with test_env, shill_context.ServiceAutoConnectContext(
[all …]
Dcontrol.pseudomodem30 test_env = test_environment.CellularPseudoMMTestEnvironment(
32 job.run_test('cellular_Smoke', tag='pseudomodem_3GPP', test_env=test_env)
35 test_env = test_environment.CellularPseudoMMTestEnvironment(
37 job.run_test('cellular_Smoke', tag='pseudomodem_CDMA', test_env=test_env)
/external/autotest/client/site_tests/cellular_SafetyDance/
Dcellular_SafetyDance.py42 self.test_env.shill.manager.EnableTechnology('cellular'))
47 self.test_env.shill.manager.DisableTechnology('cellular'))
60 return not self.test_env.shill.find_cellular_service_object()
66 service = self.test_env.shill.wait_for_cellular_service_object(
72 self.test_env.shill.connect_service_synchronous(
82 service = self.test_env.shill.wait_for_cellular_service_object(
88 self.test_env.shill.disconnect_service_synchronous(
114 self.device = self.test_env.shill.find_cellular_device_object()
125 def run_once(self, test_env, ops=30, seed=None): argument
126 self.test_env = test_env
[all …]
Dcontrol.pseudomodem27 test_env = test_environment.CellularPseudoMMTestEnvironment(
29 job.run_test('cellular_SafetyDance', test_env=test_env, tag='pseudomodem_3GPP')
32 test_env = test_environment.CellularPseudoMMTestEnvironment(
34 job.run_test('cellular_SafetyDance', test_env=test_env, tag='pseudomodem_CDMA')
/external/autotest/client/site_tests/cellular_SIMLocking/
Dcellular_SIMLocking.py63 if e.get_dbus_name() == self.test_env.shill.ERROR_INCORRECT_PIN:
76 if e.get_dbus_name() == self.test_env.shill.ERROR_INCORRECT_PIN:
87 self.test_env.shill.DEVICE_PROPERTY_SIM_LOCK_STATUS,
91 return self.test_env.shill.dbus2primitive(sim_lock_status)
98 self.test_env.shill.PROPERTY_KEY_SIM_LOCK_ENABLED,
110 self.test_env.shill.PROPERTY_KEY_SIM_LOCK_TYPE,
115 return lock_type == self.test_env.shill.VALUE_SIM_LOCK_TYPE_PIN
122 self.test_env.shill.PROPERTY_KEY_SIM_LOCK_TYPE,
127 return lock_type == self.test_env.shill.VALUE_SIM_LOCK_TYPE_PUK
134 self.test_env.shill.PROPERTY_KEY_SIM_LOCK_RETRIES_LEFT,
[all …]
/external/autotest/client/site_tests/cellular_DisableWhileConnecting/
Dcontrol.pseudomodem26 test_env = test_environment.CellularPseudoMMTestEnvironment(
29 test_env=test_env,
36 test_env = test_environment.CellularPseudoMMTestEnvironment(
39 test_env=test_env,
47 test_env = test_environment.CellularPseudoMMTestEnvironment(
50 test_env=test_env,
57 test_env = test_environment.CellularPseudoMMTestEnvironment(
60 test_env=test_env,
Dcellular_DisableWhileConnecting.py110 self.test.test_env.shill.find_cellular_device_object()
115 self.test.test_env.shill.find_cellular_service_object()
117 self.test.test_env.bus.add_signal_receiver(
156 return self.test.test_env.shill.get_dbus_property(
181 return 'Gobi' in self.test.test_env.modem.path
196 self.simple_modem = self.test.test_env.modem.SimpleModem()
198 logging.info('Modem path: %s', self.test.test_env.modem.path)
205 service = self.test.test_env.shill.wait_for_cellular_service_object()
211 gobi_modem = self.test.test_env.modem.GobiModem()
249 return self.test.test_env.modem.GetModemProperties().get('Enabled', -1)
[all …]
Dcontrol26 test_env = test_environment.CellularOTATestEnvironment()
28 test_env=test_env,
38 test_env = test_environment.CellularOTATestEnvironment()
40 test_env=test_env,
/external/autotest/client/site_tests/cellular_ModemControl/
Dcellular_ModemControl.py193 state = self.test_env.shill.get_dbus_property(
204 state = self.test_env.shill.get_dbus_property(
222 lambda: not self.test_env.modem.IsConnectingOrDisconnecting(),
236 lambda: self.CompareModemPowerState(self.test_env.modem, False),
242 lambda: not self.test_env.shill.find_cellular_service_object(),
259 lambda: self.CompareModemPowerState(self.test_env.modem, True),
266 service = self.test_env.shill.wait_for_cellular_service_object()
283 self.test_env.shill.find_cellular_service_object(),
307 technology_family = self.test_env.modem.GetCurrentTechnologyFamily()
357 service = self.test_env.shill.find_cellular_service_object()
[all …]
Dcontrol.pseudomodem29 test_env = test_environment.CellularPseudoMMTestEnvironment(
31 job.run_test('cellular_ModemControl', test_env=test_env, autoconnect=False,
33 job.run_test('cellular_ModemControl', test_env=test_env, autoconnect=True,
37 test_env = test_environment.CellularPseudoMMTestEnvironment(
39 job.run_test('cellular_ModemControl', test_env=test_env, autoconnect=False,
41 job.run_test('cellular_ModemControl', test_env=test_env, autoconnect=True,
Dcontrol27 test_env = test_environment.CellularOTATestEnvironment()
28 job.run_test('cellular_ModemControl', test_env=test_env, autoconnect=False,
30 job.run_test('cellular_ModemControl', test_env=test_env, autoconnect=True,
Dcontrol.att28 test_env = test_environment.CellularOTATestEnvironment()
29 job.run_test('cellular_ModemControl', test_env=test_env, autoconnect=False,
31 job.run_test('cellular_ModemControl', test_env=test_env, autoconnect=True,
Dcontrol.verizon28 test_env = test_environment.CellularOTATestEnvironment()
29 job.run_test('cellular_ModemControl', test_env=test_env, autoconnect=False,
31 job.run_test('cellular_ModemControl', test_env=test_env, autoconnect=True,
Dcontrol.tmobile28 test_env = test_environment.CellularOTATestEnvironment()
29 job.run_test('cellular_ModemControl', test_env=test_env, autoconnect=False,
31 job.run_test('cellular_ModemControl', test_env=test_env, autoconnect=True,
Dcontrol.sprint28 test_env = test_environment.CellularOTATestEnvironment()
29 job.run_test('cellular_ModemControl', test_env=test_env, autoconnect=False,
31 job.run_test('cellular_ModemControl', test_env=test_env, autoconnect=True,
/external/autotest/client/site_tests/cellular_DisconnectFailure/
Dcellular_DisconnectFailure.py157 service = self.test_env.shill.find_cellular_service_object()
168 service = self.test_env.shill.find_cellular_service_object()
181 self.test_env = test_environment.CellularPseudoMMTestEnvironment(
186 with self.test_env:
211 service = self.test_env.shill.find_cellular_service_object()
212 self.test_env.shill.connect_service_synchronous(
216 self.test_env.shill.disconnect_service_synchronous(
237 service = self.test_env.shill.find_cellular_service_object()
238 self.test_env.shill.connect_service_synchronous(
242 self.test_env.shill.disconnect_service_synchronous(
[all …]
/external/autotest/client/site_tests/cellular_OutOfCreditsSubscriptionState/
Dcellular_OutOfCreditsSubscriptionState.py31 self.test_env.shill.disable_modem_for_test_setup()
40 self.test_env.shill.manager.EnableTechnology(
59 self.test_env.shill.wait_for_cellular_service_object()
73 self.test_env.shill.wait_for_cellular_service_object()
86 self.test_env.shill.wait_for_cellular_service_object()
104 self.test_env = test_environment.CellularPseudoMMTestEnvironment(
106 with self.test_env, shill_context.ServiceAutoConnectContext(
107 self.test_env.shill.wait_for_cellular_service_object, False):
/external/autotest/server/cros/
Dresource_monitor_unittest.py30 def _initialize(self, test_env): argument
40 self.test_env = test_env
64 self.test_env.assertFalse(self.top_is_running,
66 self.test_env.assertFalse(self.top_output_file_is_open,
69 self.test_env.assertIsNone(self.top_output_file_path,
99 self.test_env.assertEqual(pid_to_kill, HostMock.TOP_PID,
102 self.test_env.assertTrue(self.top_is_running,
124 self.test_env.assertEqual(file_to_rm, self.top_output_file_path,
126 self.test_env.assertFalse(self.top_output_file_is_open,
129 self.test_env.assertFalse(self.top_is_running,
[all …]
/external/autotest/client/site_tests/cellular_StressEnable/
Dcontrol.pseudomodem24 test_env = test_environment.CellularPseudoMMTestEnvironment(
27 test_env=test_env)
30 test_env = test_environment.CellularPseudoMMTestEnvironment(
33 test_env=test_env)
/external/autotest/client/site_tests/cellular_DeferredRegistration/
Dcellular_DeferredRegistration.py31 service = self.test_env.shill.find_cellular_service_object()
32 self.test_env.shill.connect_service_synchronous(
34 timeout_seconds=self.test_env.shill.SERVICE_CONNECT_TIMEOUT)
52 if self.test_env.shill.find_cellular_service_object() is None:
64 if self.test_env.shill.find_cellular_service_object() is not None:
75 pseudomm_args=({'family': '3GPP'},)) as self.test_env:
/external/autotest/client/cros/
Dwebstore_test.py103 def _get_chrome_flags(test_env): argument
108 if test_env == TestEnv.prod:
115 }[test_env]
120 }[test_env]
138 def initialize(self, test_env=TestEnv.sandbox, argument
151 self.test_env = test_env
152 self._chrome_flags = _get_chrome_flags(test_env)
162 }[test_env]
203 TestEnv.to_string[self.test_env])
/external/autotest/client/site_tests/cellular_ConnectFailure/
Dcellular_ConnectFailure.py75 service = self.test_env.shill.find_cellular_service_object()
82 _, state, _ = self.test_env.shill.wait_for_property_in(
93 def run_once(self, test_env, connect_count=4): argument
94 with test_env:
95 self.test_env = test_env
Dcontrol.pseudomodem32 test_env = test_environment.CellularPseudoMMTestEnvironment(
37 test_env=test_env)
40 test_env = test_environment.CellularPseudoMMTestEnvironment(
45 test_env=test_env)
/external/autotest/client/site_tests/cellular_ServiceName/
Dcellular_ServiceName.py95 self.test_env.shill.wait_for_cellular_service_object()
112 self.test_env = test_environment.CellularPseudoMMTestEnvironment(
116 with self.test_env:
130 self.test_env = test_environment.CellularPseudoMMTestEnvironment(
135 with self.test_env:
144 self.test_env = test_environment.CellularPseudoMMTestEnvironment(
148 with self.test_env:

123456