@mock.patch('compose.service.log', autospec=True)
def test_pull_image_with_platform(self, mock_log):
    self.mock_client.api_version = '1.35'
    service = Service('foo', client=self.mock_client, image='someimage:sometag', platform='windows/x86_64')
    service.pull()
    assert (self.mock_client.pull.call_count == 1)
    call_args = self.mock_client.pull.call_args
    assert (call_args[1]['platform'] == 'windows/x86_64')
@mock.patch('compose.service.log', autospec=True)
def test_pull_image_with_platform(self, mock_log):
    self.mock_client.api_version = '1.35'
    service = Service('foo', client=self.mock_client, image='someimage:sometag', platform='windows/x86_64')
    service.pull()
    assert (self.mock_client.pull.call_count == 1)
    call_args = self.mock_client.pull.call_args
    assert (call_args[1]['platform'] == 'windows/x86_64')