          self.wrapped = wrapped
          self.message = message
  
      def __call__(self):
          raise AssertionError(self.message)
  
  
  class SimpleTestCase(unittest.TestCase):
  
      # The class we'll use for the test client self.client.
 
</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): </s> remove         with self.assertRaisesMessage(AssertionError, expected_message):
 </s> add         with self.assertRaisesMessage(DatabaseOperationForbidden, expected_message):
        raise DatabaseOperationForbidden(self.message)
          self.wrapped = wrapped
          self.message = message
  
      def __call__(self):
        raise DatabaseOperationForbidden(self.message)
  
  
  class SimpleTestCase(unittest.TestCase):
  
      # The class we'll use for the test client self.client.
keep keep keep keep replace keep keep keep keep keep
 Fixed #33278 -- Improved error for connection/query attempts against disallowed databases in tests. 
django/test/testcases.py