def _test_ews(self, ews, results_are_conclusive=True): ews.bind_to_tool(MockTool()) ews.host = MockHost() options = Mock() options.port = None options.run_tests = ews.run_tests self.assert_queue_outputs(ews, expected_logs=self._default_expected_logs(ews, results_are_conclusive), options=options)
def _test_ews(self, ews): ews.bind_to_tool(MockTool()) ews.host = MockHost() options = Mock() options.port = None options.run_tests = ews.run_tests self.assert_queue_outputs(ews, expected_logs=self._default_expected_logs(ews), options=options)
def _test_ews(self, ews, results_are_conclusive=True, use_security_sensitive_patch=False): ews.bind_to_tool(MockTool()) ews.host = MockHost() options = Mock() options.port = None options.run_tests = ews.run_tests work_item = MockTool().bugs.fetch_attachment(10008) if use_security_sensitive_patch else None self.assert_queue_outputs(ews, work_item=work_item, expected_logs=self._default_expected_logs(ews, results_are_conclusive, work_item, will_fetch_from_status_server=bool(use_security_sensitive_patch)), options=options)
def _test_builder_ews(self, ews): ews.bind_to_tool(MockTool()) options = Mock() options.port = None options.run_tests = ews._default_run_tests self.assert_queue_outputs( ews, expected_logs=self._default_expected_logs(ews), options=options)
def _test_builder_ews(self, ews): ews.bind_to_tool(MockTool()) options = Mock() options.port = None options.run_tests = ews._default_run_tests self.assert_queue_outputs(ews, expected_stderr=self._default_expected_stderr(ews), options=options)