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

Method patch_send

awscli/testutils.py:569–577  ·  view source on GitHub ↗
(self, status_code=200, headers={}, content=b'')

Source from the content-addressed store, hash-verified

567 self.send_is_patched = False
568
569 def patch_send(self, status_code=200, headers={}, content=b''):
570 if self.send_is_patched:
571 self.send_patch.stop()
572 self.send_is_patched = False
573 send_patch = self.send_patch.start()
574 send_patch.return_value = mock.Mock(
575 status_code=status_code, headers=headers, content=content
576 )
577 self.send_is_patched = True
578
579 def run_cmd(self, cmd, expected_rc=0):
580 if not isinstance(cmd, list):

Callers 1

setUpMethod · 0.80

Calls 2

stopMethod · 0.45
startMethod · 0.45

Tested by

no test coverage detected