def METHOD_NAME(self, mock_post):
    mock_post.return_value.status_code.return_value = 200
    mock_post.return_value.text = "response text"
    akamai_backend = AkamaiBackend(self.credentials)
    akamai_backend.post_all("invalidate")
    mock_post.assert_called_once_with(
        "http://purge",
        headers=akamai_backend.headers,
        data='{"action": "invalidate", "objects": ["12345"]}',
        auth=akamai_backend.auth,
    )