original_docstring:  Contextmanager for asserting block raises SystemExit with success True/False 
docstring: Contextmanager for asserting block raises SystemExit with success True/False
docstring_tokens: Contextmanager for asserting block raises SystemExit with success True / False
code: def assert_exit_with_success(success):
      """ Contextmanager for asserting block raises SystemExit with success True/False """
      with pytest.raises(SystemExit) as exc:
          yield
      assert success == (exc.value.code in (None, 0))
code_tokens: def assert_exit_with_success ( success ) : with pytest . raises ( SystemExit ) as exc : yield assert success == ( exc . value . code in ( None , 0 ) )
short_docstring: Contextmanager for asserting block raises SystemExit with success True/False
short_docstring_tokens: Contextmanager for asserting block raises SystemExit with success True / False
comment: """ Contextmanager for asserting block raises SystemExit with success True/False """