@mock.patch('compose.service.log', autospec=True)
def test_pull_image_with_platform_unsupported_api(self, mock_log):
    self.mock_client.api_version = '1.33'
    service = Service('foo', client=self.mock_client, image='someimage:sometag', platform='linux/arm')
    with pytest.raises(OperationFailedError):
        service.pull()
@mock.patch('compose.service.log', autospec=True)
def test_pull_image_with_platform_unsupported_api(self, mock_log):
    self.mock_client.api_version = '1.33'
    service = Service('foo', client=self.mock_client, image='someimage:sometag', platform='linux/arm')
    with pytest.raises(OperationFailedError):
        service.pull()