class_docstr: Tests for every flavor of form/deltagenerator association.
class_docstr_tok: ["Tests","for","every","flavor","of","form\/deltagenerator","association","."]
docstr: If our parent was created outside a form, any children of
  that parent have no form, regardless of where they're created.
code: def test_parent_created_outside_form(self):
      """If our parent was created outside a form, any children of
      that parent have no form, regardless of where they're created."""
      no_form_col = st.columns(2)[0]
      no_form_col.checkbox("widget1")
      self.assertEqual(NO_FORM_ID, self._get_last_checkbox_form_id())
  
      with st.form("form"):
          no_form_col.checkbox("widget2")
          self.assertEqual(
              NO_FORM_ID, self._get_last_checkbox_form_id()
          )
  
          with no_form_col:
              st.checkbox("widget3")
              self.assertEqual(
                  NO_FORM_ID, self._get_last_checkbox_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 6 for calling the FormAssociationTest obj's underlying member method code with example usage: obj.test_parent_created_outside_form() without return types