def METHOD_NAME(self):
    exporter = ExporterService(testing=True)
    # call to get file from owncloud
    pact.given(
        'file and userid is valid'
    ).upon_receiving(
        'returns 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(
        'corresponding error message'
    ).with_request(
        'POST', '/deposition'
    ) .will_respond_with(401, body={"error": "Unauthorized", "http_code": 401})
    with pact:
        result = exporter.export(
            "port-owncloud", "port-zenodo", "testfile.txt", "admin")
    self.assertFalse(result)