              "silence this failure."
          )
          with self.assertRaisesMessage(AssertionError, expected_message):
              connection.connect()
          with self.assertRaisesMessage(AssertionError, expected_message):
              connection.temporary_connection()
  
      def test_disallowed_database_queries(self):
          expected_message = (
              "Database queries to 'default' are not allowed in SimpleTestCase "
 
</s> remove         with self.assertRaisesMessage(AssertionError, expected_message):
 </s> add         with self.assertRaisesMessage(DatabaseOperationForbidden, expected_message): </s> remove         with self.assertRaisesMessage(AssertionError, expected_message):
 </s> add         with self.assertRaisesMessage(DatabaseOperationForbidden, expected_message): </s> remove         with self.assertRaisesMessage(AssertionError, message):
 </s> add         with self.assertRaisesMessage(DatabaseOperationForbidden, message): </s> remove         with self.assertRaisesMessage(AssertionError, expected_message):
 </s> add         with self.assertRaisesMessage(DatabaseOperationForbidden, expected_message): </s> remove         with self.assertRaisesMessage(AssertionError, message):
 </s> add         with self.assertRaisesMessage(DatabaseOperationForbidden, message):
        with self.assertRaisesMessage(DatabaseOperationForbidden, expected_message):
              "silence this failure."
          )
          with self.assertRaisesMessage(AssertionError, expected_message):
              connection.connect()
        with self.assertRaisesMessage(DatabaseOperationForbidden, expected_message):
              connection.temporary_connection()
  
      def test_disallowed_database_queries(self):
          expected_message = (
              "Database queries to 'default' are not allowed in SimpleTestCase "
keep keep keep keep replace keep keep keep keep keep
 Fixed #33278 -- Improved error for connection/query attempts against disallowed databases in tests. 
tests/test_utils/tests.py