docstr: Coalesce two null-WidgetStates rerun requests.
docstr_tok: ["Coalesce","two","null-WidgetStates","rerun","requests","."]
code: def test_rerun_coalesce_none_and_none(self):
      """Coalesce two null-WidgetStates rerun requests."""
      reqs = ScriptRequests()
  
      # Request a rerun with null WidgetStates
      success = reqs.request_rerun(RerunData(widget_states=None))
      self.assertTrue(success)
      self.assertEqual(ScriptRequestType.RERUN, reqs._state)
  
      # Request another
      reqs.request_rerun(RerunData(widget_states=None))
      self.assertTrue(success)
      self.assertEqual(ScriptRequestType.RERUN, reqs._state)
  
      # The resulting RerunData should have null widget_states
      self.assertEqual(RerunData(widget_states=None), reqs._rerun_data)
  
imports: import unittest
  from typing import Optional
  from streamlit.proto.WidgetStates_pb2 import WidgetState, WidgetStates
  from streamlit.runtime.scriptrunner.script_requests import RerunData, ScriptRequest, ScriptRequests, ScriptRequestType
label_desc: Use image node_id 5 for calling the ScriptRequestsTest obj's underlying member method code with example usage: obj.test_rerun_coalesce_none_and_none() without return types