docstr: Test that update can be used in context manager to change the label, state and expand.
docstr_tok: ["Test","that","update","can","be","used","in","context","manager","to","change","the","label",",","state","and","expand","."]
code: def test_mutation_via_update_in_cm(self):
      """Test that update can be used in context manager to change the label, state and expand."""
      with st.status("label", expanded=False) as status:
          status.update(label="new label", state="error", expanded=True)
  
      status_block = self.get_delta_from_queue()
      self.assertEqual(
          status_block.add_block.expandable.label, "new label"
      )
      self.assertEqual(status_block.add_block.expandable.expanded, True)
      self.assertEqual(status_block.add_block.expandable.icon, "error")
  
imports: import streamlit
  from streamlit.errors import StreamlitAPIException
  from tests.delta_generator_test_case import DeltaGeneratorTestCase
label_desc: Use image node_id 9 for calling the StatusContainerTest obj's underlying member method code with example usage: obj.test_mutation_via_update_in_cm() without return types