docstr: This test is to ensure that the fetcher raises an exception when a single bad request is made and it is configured to
  do so.
docstr_tok: ["This","test","is","to","ensure","that","the","fetcher","raises","an","exception","when","a","single","bad","request","is","made","and","it","is","configured","to","do","so","."]
code: def test_bad_request_exception_raised(self):
      """
      This test is to ensure that the fetcher raises an exception when a single bad request is made and it is configured to
      do so.
      """
      fetcher = LinkContentFetcher()
      with pytest.raises(requests.exceptions.ConnectionError):
          fetcher.run(["https://non_existent_website_dot.com/"])
  
file_path: haystack/test/components/fetchers/test_link_content_fetcher.py
imports: from unittest.mock import patch, Mock
  import pytest
  import requests
  from haystack.components.fetchers.link_content import LinkContentFetcher, text_content_handler, binary_content_handler, DEFAULT_USER_AGENT
label_desc: Use image node_id 13 for calling the TestLinkContentFetcher obj's underlying member method code with example usage: obj.test_bad_request_exception_raised() without return types