def Test(self):
    """Tests a review.

    Returns:
      A boolean value to indicate if the test was successful.
    """
    if self._project_name == u'l2tdocs':
      return True

    if self._command not in (u'create', u'merge', u'test', u'update'):
      return True

    # TODO: determine why this alters the behavior of argparse.
    # Currently affects this script being used in plaso.
    command = u'{0:s} run_tests.py'.format(sys.executable)
    exit_code = subprocess.call(command, shell=True)
    if exit_code != 0:
      print(u'{0:s} aborted - unable to pass tests.'.format(
          self._command.title()))

      if self._command == u'merge':
        self._git_helper.DropUncommittedChanges()
      return False

    return True
dataset/ETHPy150Open log2timeline/dfvfs/utils/review.py/ReviewHelper.Test/original