title: python Mock post inside a method
body: <p>How can I mock a post inside a method, so i can have unittests?</p>
  
  <pre><code>    def send_report(self, data):
          url = settings.WEBHOOK_PO
          payload = json.dumps(data)
          requests.post(url, data=payload)
          url = settings.WEBHOOK_LQA
         response = requests.post(url, data=payload)
         return response.status_code
  </code></pre>
  
  <p>Is there a way to cover this method for unit test with not actually posting?</p>