def test_pull_image_with_default_platform(self):
    self.mock_client.api_version = '1.35'
    service = Service('foo', client=self.mock_client, image='someimage:sometag', default_platform='linux')
    assert (service.platform == 'linux')
    service.pull()
    assert (self.mock_client.pull.call_count == 1)
    call_args = self.mock_client.pull.call_args
    assert (call_args[1]['platform'] == 'linux')
def test_pull_image_with_default_platform(self):
    self.mock_client.api_version = '1.35'
    service = Service('foo', client=self.mock_client, image='someimage:sometag', default_platform='linux')
    assert (service.platform == 'linux')
    service.pull()
    assert (self.mock_client.pull.call_count == 1)
    call_args = self.mock_client.pull.call_args
    assert (call_args[1]['platform'] == 'linux')