(self, status_code=200, headers={}, content=b'')
| 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): |