docstr: various one-target views get the right value for single_result
docstr_tok: ["various","one-target","views","get","the","right","value","for","single_result"]
code: def test_single_result_view(self):
      """various one-target views get the right value for single_result"""
      eid = self.client.ids[-1]
      ar = self.client[eid].apply_async(lambda: 42)
      assert ar.get() == 42
      ar = self.client[[eid]].apply_async(lambda: 42)
      assert ar.get() == [42]
      ar = self.client[-1:].apply_async(lambda: 42)
      assert ar.get() == [42]
  
imports: import os
  import time
  from datetime import datetime
  import pytest
  from IPython.utils.io import capture_output
  import ipyparallel
  from ipyparallel import error
  from .clienttest import ClusterTestCase, raises_remote
label_desc: Use image node_id 1 for calling the TestAsyncResult obj's underlying member method code with example usage: obj.test_single_result_view() without return types