docstr: Test if the component runs correctly when metadata is read from the ByteStream object and supplied by the user.
  
  There is no overlap between the metadata received.
docstr_tok: ["Test","if","the","component","runs","correctly","when","metadata","is","read","from","the","ByteStream","object","and","supplied","by","the","user",".","There","is","no","overlap","between","the","metadata","received","."]
code: def test_run_bytestream_and_doc_metadata(self, test_files_path):
      """
      Test if the component runs correctly when metadata is read from the ByteStream object and supplied by the user.
  
      There is no overlap between the metadata received.
      """
      converter = HTMLToDocument()
      with open(
          test_files_path / "html" / "what_is_haystack.html", "rb"
      ) as file:
          byte_stream = file.read()
          stream = ByteStream(
              byte_stream,
              meta={"content_type": "text/html", "url": "test_url"},
          )
  
      metadata = [{"file_name": "what_is_haystack.html"}]
      results = converter.run(sources=[stream], meta=metadata)
      docs = results["documents"]
  
      assert len(docs) == 1
      assert "Haystack" in docs[0].content
      assert docs[0].meta == {
          "file_name": "what_is_haystack.html",
          "content_type": "text/html",
          "url": "test_url",
      }
  
file_path: haystack/test/components/converters/test_html_to_document.py
imports: import logging
  import pytest
  from haystack.components.converters import HTMLToDocument
  from haystack.dataclasses import ByteStream
label_desc: Use image node_id 6 for calling the TestHTMLToDocument obj's underlying member method code with example usage: obj.test_run_bytestream_and_doc_metadata(test_files_path) without return types