(self)
| 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() |