docstr: Test st.video using fake bytes data.
docstr_tok: ["Test","st.video","using","fake","bytes","data","."]
code: def test_st_video_from_bytes(self):
      """Test st.video using fake bytes data."""
      # Make up some bytes to pretend we have a video.  The server should not vet
      # the video before sending it to the browser.
      fake_video_data = "\x12\x10\x35\x44\x55\x66".encode("utf-8")
  
      st.video(fake_video_data)
  
      el = self.get_delta_from_queue().new_element
  
      # locate resultant file in InMemoryFileManager and test its properties.
      file_id = _calculate_file_id(fake_video_data, "video/mp4")
      media_file = self.media_file_storage.get_file(file_id)
      self.assertIsNotNone(media_file)
      self.assertEqual(media_file.mimetype, "video/mp4")
      self.assertEqual(
          self.media_file_storage.get_url(file_id), el.video.url
      )
  
file_path: streamlit/lib/tests/streamlit/elements/video_test.py
imports: from io import BytesIO
  import numpy
  import streamlit
  from streamlit.runtime.media_file_storage import MediaFileStorageError
  from streamlit.runtime.memory_media_file_storage import _calculate_file_id
  from streamlit.web.server.server import MEDIA_ENDPOINT
  from tests.delta_generator_test_case import DeltaGeneratorTestCase
label_desc: Use image node_id 1 for calling the VideoTest obj's underlying member method code with example usage: obj.test_st_video_from_bytes() without return types