Home
last modified time | relevance | path

Searched refs:and_raises (Results 1 – 16 of 16) sorted by relevance

/external/autotest/cli/
Dacl_unittest.py43 sys.exit.expect_call(1).and_raises(cli_mock.ExitException)
152 sys.exit.expect_call(1).and_raises(cli_mock.ExitException)
163 sys.exit.expect_call(1).and_raises(cli_mock.ExitException)
173 sys.exit.expect_call(1).and_raises(cli_mock.ExitException)
273 sys.exit.expect_call(1).and_raises(cli_mock.ExitException)
Dcli_mock.py92 comm.expect_call(op, **dargs).and_raises(proxy.JSONRPCException(expected))
112 sys.exit.expect_call(exit_code).and_raises(ExitException)
Dtopic_common_unittest.py334 sys.exit.expect_call(1).and_raises(cli_mock.ExitException)
423 sys.exit.expect_call(1).and_raises(cli_mock.ExitException)
434 sys.exit.expect_call(1).and_raises(cli_mock.ExitException)
735 sys.exit.expect_call(1).and_raises(cli_mock.ExitException)
774 …rpc.afe_comm.run.expect_call('myop').and_raises(urllib2.URLError("<urlopen error (-2, 'Name or ser…
775 sys.exit.expect_call(1).and_raises(cli_mock.ExitException)
Djob_unittest.py219 .and_raises(cli_mock.ExitException))
974 .and_raises(cli_mock.ExitException))
987 .and_raises(cli_mock.ExitException))
1001 .and_raises(cli_mock.ExitException))
1013 .and_raises(cli_mock.ExitException))
1025 .and_raises(IOError))
1036 .and_raises(cli_mock.ExitException))
Daction_common_unittest.py79 sys.exit.expect_call(1).and_raises(cli_mock.ExitException)
365 sys.exit.expect_call(1).and_raises(cli_mock.ExitException)
Dhost_unittest.py24 sys.exit.expect_call(1).and_raises(cli_mock.ExitException)
/external/autotest/database/
Ddatabase_connection_unittest.py89 call.and_raises(FakeDatabaseError())
93 self._fake_backend.connect.expect_call(**_CONNECT_KWARGS).and_raises(
169 self._fake_backend.execute.expect_call('query', None).and_raises(
177 self._fake_backend.execute.expect_call('query', None).and_raises(
/external/autotest/server/
Dsubcommand_unittest.py142 func.expect_call(1, 2).and_raises(error)
164 .and_raises(subcommand.os.error('waitpid')))
184 cmd._handle_exitstatus.expect_call(10).and_raises(Exception('fail'))
207 cmd._handle_exitstatus.expect_call(10).and_raises(Exception('fail'))
369 func.expect_call(3).and_raises(error)
Dautotest_unittest.py247 .and_raises(error.AutoservRunError('dummy', object())))
277 collector.collect_client_job_results.expect_call().and_raises(
287 self.host.run.expect_call('echo A > /autotest/fifo2').and_raises(
307 self.host.run.expect_call('echo B > /autotest/fifo3').and_raises(
/external/autotest/client/bin/
Dpackage_unittest.py159 os_dep.command.expect_call(package_manager).and_raises(ValueError)
162 os_dep.command.expect_call('alien').and_raises(ValueError)
Djob_unittest.py300 self.control, options, True, ['more-blah']).and_raises(error)
512 self.job._runtest.expect_call(testname, "", None, (), {}).and_raises(
547 self.job._runtest.expect_call(testname, "", None, (), {}).and_raises(
/external/autotest/tko/parsers/
Dversion_0_unittest.py61 version_0.job.find_hostname.expect_call('.').and_raises(
86 version_0.job.find_hostname.expect_call('.').and_raises(
/external/autotest/client/common_lib/
Dtest_unittest.py88 self.test.run_once.expect_call(1, 2, arg='val').and_raises(error)
109 {'arg': 'val'}).and_raises(
Dbase_utils_unittest.py776 base_utils.select.select.expect_any_call().and_raises(
/external/autotest/client/common_lib/test_utils/
Dmock_demo.py124 m3.method6.expect_call(True).and_raises(MyError("woops"))
Dmock.py181 def and_raises(self, error): member in function_mapping