class_docstr: Test form submit button.
class_docstr_tok: ["Test","form","submit","button","."]
docstr: Test that a submit button can be called directly on a form block.
code: def test_submit_button_called_directly_on_form_block(self):
      """Test that a submit button can be called directly on a form block."""
  
      form = st.form("foo")
      form.form_submit_button()
  
      last_delta = self.get_delta_from_queue()
      self.assertEqual("foo", last_delta.new_element.button.form_id)
  
imports: from unittest.mock import MagicMock, patch
  import streamlit
  from streamlit.errors import StreamlitAPIException
  from streamlit.runtime.state.session_state import RegisterWidgetResult
  from tests.delta_generator_test_case import DeltaGeneratorTestCase
label_desc: Use image node_id 4 for calling the FormSubmitButtonTest obj's underlying member method code with example usage: obj.test_submit_button_called_directly_on_form_block() without return types