code: def test_handle_wrong_format():
      wrong_args = DEFAULT_ARGS.copy()
      wrong_args.update({"--url": "URL", "--format": "text"})
  
      with pytest.raises(ValueError):
          handle_arguments(
              wrong_args, default_input_stream=StringIO("Whatever.")
          )
  
file_path: sumy/tests/test_main.py
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  from io import StringIO
  import pytest
  from docopt import docopt, DocoptExit
  from sumy.__main__ import __doc__, handle_arguments, to_string, __version__
label_desc: Use image node_id 8 for calling a global function with example usage: test_handle_wrong_format() without return types