title: Actual interactions do not match expected interactions for mock MockService
body: <p>I'm new to both python and contract testing. I'm trying to test my consumer application using <code>pact-python</code>.</p>
  
  <p>This is the test file <code>test_posts_controller.py</code></p>
  
  <pre><code>import unittest
  import atexit
  from pact import Consumer, Provider, Term
  import requests
  
  pact = Consumer('Consumer').has_pact_with(Provider('Provider'))
  pact.start_service()
  atexit.register(pact.stop_service)
  
  class GetPostsContract(unittest.TestCase):
      def test_get_all_posts(self):
          expected = {
              "userId": 1,
              "id": 1,
              "title": "sunt aut facere repellat provident occaecati excepturi optio reprehenderit",
              "body": "quia et suscipit\nsuscipit recusandae consequuntur expedita et cum\nreprehenderit molestiae ut ut quas totam\nnostrum rerum est autem sunt rem eveniet architecto"
          }
  
          (pact
              .given('posts exist')
              .upon_receiving('a request for post by id')
              .with_request('GET', '/posts/1')
              .will_respond_with(200, body=expected))
  
          with pact: 
              result = requests.get('https://jsonplaceholder.typicode.com/posts/1')
  
          self.assertEqual(result.json(), expected)
  </code></pre>
  
  <p>Here I'm trying to hit <a href="https://jsonplaceholder.typicode.com/posts/1" rel="nofollow noreferrer">JSONPlaceholder</a>.</p>
  
  <p>I'm using <code>pytest</code> command to run the test.</p>
  
  <p>But I'm getting the below error. I don't know what i'm missing.</p>
  
  <pre><code>self = &lt;pact.pact.Pact object at 0x10cc8c8d0&gt;
  
  def verify(self):
      """
      Have the mock service verify all interactions occurred.
  
      Calls the mock service to verify that all interactions occurred as
      expected, and has it write out the contracts to disk.
  
      :raises AssertionError: When not all interactions are found.
      """
      self._interactions = []
      resp = requests.get(
          self.uri + '/interactions/verification',
          headers=self.HEADERS)
      &gt;       assert resp.status_code == 200, resp.text
      E       AssertionError: Actual interactions do not match expected interactions for mock MockService.
      E
      E       Missing requests:
      E           GET /posts/1
      E
      E       See pact-mock-service.log for details.
  
      venv/lib/python3.7/site-packages/pact/pact.py:209: AssertionError
  </code></pre>
  
  <p>I have tried <code>pact.setup()</code> and <code>pact.verify()</code> also but still I'm getting the same error. Can someone help me fix this?</p>
  
  <p>And it doesn't create pactfile also. What are the things I have to setup?.</p>