(self)
| 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) |
nothing calls this directly
no test coverage detected