def testAcquireLock(self):
    hit_exception = False

    # This should succeed.
    lock = self._RunAsync(Lock.Acquire, self._client, 'tst', 'id0', None)
    try:
      # This should fail and raise an error because the lock is already taken.
      self._RunAsync(Lock.Acquire, self._client, 'tst', 'id0', None)
      try:
        self.fail("Shouldn't reach this point in try.")
      finally:
        self.fail("Shouldn't reach this point in finally.")
    except Exception as e:
      hit_exception = True
      self.assertEqual(type(e), LockFailedError)
    finally:
      self._RunAsync(lock.Release, self._client)

    self.assertTrue(lock.IsReleased())
    self.assertTrue(hit_exception)
Parse an argument declaration line
dataset/ETHPy150Open viewfinderco/viewfinder/backend/db/test/lock_test.py/LockTestCase.testAcquireLock--crossover with--dataset/ETHPy150Open tioui/Vim_Eiffel_IDE/pyplugin/eiffel_class.py/get_arguments_from_lines