def test_decorator_with_no_flash(self):
        self.request = HttpRequest()
        view = keep_messages(view_method)
        self.assertFalse(view(self.request))
Decorators: keep_messages should not break when there's no flash scope attached to the request.
dataset/ETHPy150Open danielfm/django-flash/src/djangoflash/tests/decorators.py/KeepMessagesDecoratorTestCase.test_decorator_with_no_flash