

def test_middleware_missing(self):
    msg = 'some message'
    with self.assertRaises(messages.MessageFailure):
        messages.add_message(msg.request, messages.DEBUG, msg)
    self.assertEqual([], self.storage.store)

dataset/ETHPy150Open django/django/tests/messages_tests/test_api.py ApiTest.test_middleware_missing/VarMisuse@30/43 `self`->`msg`