Searched refs:and_raises (Results 1 – 16 of 16) sorted by relevance
43 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)
92 comm.expect_call(op, **dargs).and_raises(proxy.JSONRPCException(expected))112 sys.exit.expect_call(exit_code).and_raises(ExitException)
334 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)
219 .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))
79 sys.exit.expect_call(1).and_raises(cli_mock.ExitException)365 sys.exit.expect_call(1).and_raises(cli_mock.ExitException)
24 sys.exit.expect_call(1).and_raises(cli_mock.ExitException)
89 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(
142 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)
247 .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(
159 os_dep.command.expect_call(package_manager).and_raises(ValueError)162 os_dep.command.expect_call('alien').and_raises(ValueError)
300 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(
61 version_0.job.find_hostname.expect_call('.').and_raises(86 version_0.job.find_hostname.expect_call('.').and_raises(
88 self.test.run_once.expect_call(1, 2, arg='val').and_raises(error)109 {'arg': 'val'}).and_raises(
776 base_utils.select.select.expect_any_call().and_raises(
124 m3.method6.expect_call(True).and_raises(MyError("woops"))
181 def and_raises(self, error): member in function_mapping