MCPcopy Index your code
hub / github.com/aws/aws-cli / test_get_output_stream

Method test_get_output_stream

tests/unit/test_utils.py:273–277  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

271 self.fail('Should not raise IOError')
272
273 def test_get_output_stream(self):
274 self.set_session_pager('mypager --option')
275 with self.stream_factory.get_output_stream() as stream:
276 stream.write()
277 self.assert_popen_call(expected_pager_cmd='mypager --option')
278
279 @mock.patch('awscli.utils.get_stdout_text_writer')
280 def test_use_stdout_if_not_tty(self, mock_stdout_writer):

Callers

nothing calls this directly

Calls 4

set_session_pagerMethod · 0.95
assert_popen_callMethod · 0.95
get_output_streamMethod · 0.80
writeMethod · 0.45

Tested by

no test coverage detected