docstr: test graceful handling of engine death (balanced)
docstr_tok: ["test","graceful","handling","of","engine","death","(","balanced",")"]
code: def test_z_crash(self):
      """test graceful handling of engine death (balanced)"""
      self.add_engines(1)
      ar = self.view.apply_async(crash)
      with raises_remote(error.EngineError):
          ar.get(10)
      eid = ar.engine_id
      tic = time.time()
      while eid in self.client.ids and time.time() - tic < 5:
          time.sleep(0.01)
      assert eid not in self.client.ids
  
imports: import time
  from itertools import count
  import pytest
  import ipyparallel
  from ipyparallel import error
  from .clienttest import ClusterTestCase, crash, raises_remote
label_desc: Use image node_id 2 for calling the TestLoadBalancedView obj's underlying member method code with example usage: obj.test_z_crash() without return types