def test_service_ignore_default_platform_with_unsupported_api(self):
    self.mock_client.api_version = '1.32'
    self.mock_client.build.return_value = [b'{"stream": "Successfully built 12345"}']
    service = Service('foo', client=self.mock_client, default_platform='windows', build={'context': '.'})
    assert (service.platform is None)
    service.build()
    assert (self.mock_client.build.call_count == 1)
    call_args = self.mock_client.build.call_args
    assert (call_args[1]['platform'] is None)
def test_service_ignore_default_platform_with_unsupported_api(self):
    self.mock_client.api_version = '1.32'
    self.mock_client.build.return_value = [b'{"stream": "Successfully built 12345"}']
    service = Service('foo', client=self.mock_client, default_platform='windows', build={'context': '.'})
    assert (service.platform is None)
    service.build()
    assert (self.mock_client.build.call_count == 1)
    call_args = self.mock_client.build.call_args
    assert (call_args[1]['platform'] is None)