docstr: Test that it correctly switches to complete state when used as context manager.
docstr_tok: ["Test","that","it","correctly","switches","to","complete","state","when","used","as","context","manager","."]
code: def test_usage_with_context_manager(self):
      """Test that it correctly switches to complete state when used as context manager."""
      status = st.status("label")
  
      with status:
          pass
  
      status_block = self.get_delta_from_queue()
      self.assertEqual(status_block.add_block.expandable.label, "label")
      self.assertEqual(
          status_block.add_block.expandable.expanded, False
      )
      self.assertEqual(status_block.add_block.expandable.icon, "check")
  
imports: import streamlit
  from streamlit.errors import StreamlitAPIException
  from tests.delta_generator_test_case import DeltaGeneratorTestCase
label_desc: Use image node_id 7 for calling the StatusContainerTest obj's underlying member method code with example usage: obj.test_usage_with_context_manager() without return types