def METHOD_NAME(self):
    # call to get file from owncloud
    pact.given(
        'file and userid are valid'
    ).upon_receiving(
        'the wanted file content'
    ).with_request(
        'GET', '/file/testfile.txt'
    ) .will_respond_with(200, body="Lorem Ipsum")
    # call to create depo in zenodo
    pact.given(
        'userId is valid'
    ).upon_receiving(
        'create a new deposition'
    ).with_request(
        'POST', '/deposition'
    ) .will_respond_with(200, body={"depositionId": 1234})
    # call to push file to zenodo
    pact.given(
        'userId is valid'
    ).upon_receiving(
        'push the file to the new deposition successfully'
    ).with_request(
        'POST', '/deposition/1234/actions/upload',
        headers={'Content-Type': 'application/form-data'}
    ) .will_respond_with(200, body={"success": True})
    with pact:
        result = self.client.post("/exporter/export/port-zenodo", data={"user_id": "admin", "from_service":"port-owncloud", "filename":"testfile.txt"})
    self.assertEqual(result.json, {"success": True})