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

Method test_repr

tests/unit/s3transfer/test_tasks.py:417–429  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

415 )
416
417 def test_repr(self):
418 main_kwargs = {'bucket': 'mybucket', 'param_to_not_include': 'foo'}
419 task = ReturnKwargsTask(
420 self.transfer_coordinator, main_kwargs=main_kwargs
421 )
422 # The repr should not include the other parameter because it is not
423 # a desired parameter to include.
424 self.assertEqual(
425 repr(task),
426 'ReturnKwargsTask(transfer_id={}, {})'.format(
427 self.transfer_id, {'bucket': 'mybucket'}
428 ),
429 )
430
431 def test_transfer_id(self):
432 task = SuccessTask(self.transfer_coordinator)

Callers

nothing calls this directly

Calls 2

ReturnKwargsTaskClass · 0.85
formatMethod · 0.80

Tested by

no test coverage detected