class_docstr: Credentials Class Unittest class.
docstr: Test Credentials.check_activated() has an error.
code: def test_Credentials_check_activated_error(self):
      """Test Credentials.check_activated() has an error."""
      c = Credentials.get_current()
      c.activation = _Activation("some_email", True)
      with patch.object(
          c, "load", side_effect=Exception("Some error")
      ), patch("streamlit.runtime.credentials._exit") as p:
          c._check_activated(auto_resolve=False)
          p.assert_called_once_with("Some error")
  
imports: import os
  import textwrap
  import unittest
  from pathlib import Path
  from unittest.mock import MagicMock, call, mock_open, patch
  import pytest
  import requests_mock
  from testfixtures import tempdir
  from streamlit import file_util
  from streamlit.runtime.credentials import Credentials, _Activation, _verify_email, email_prompt
label_desc: Use image node_id 13 for calling the CredentialsClassTest obj's underlying member method code with example usage: obj.test_Credentials_check_activated_error() without return types