MCPcopy
hub / github.com/aws/aws-cli / test_ctrl_c_is_handled

Method test_ctrl_c_is_handled

tests/unit/test_clidriver.py:351–357  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

349 set_stream_logger.assert_called_with(**expected)
350
351 def test_ctrl_c_is_handled(self):
352 fake_client = mock.Mock()
353 fake_client.list_objects.side_effect = KeyboardInterrupt
354 fake_client.can_paginate.return_value = False
355 self.driver.session.create_client = mock.Mock(return_value=fake_client)
356 rc = self.driver.main('s3 list-objects --bucket foo'.split())
357 assert rc == 130
358
359 def test_error_unicode(self):
360 stderr_b = io.BytesIO()

Callers

nothing calls this directly

Calls 1

mainMethod · 0.45

Tested by

no test coverage detected