def test_keep_lifecycle(self):
        self.response = self.client.get(reverse(views.set_flash_var))
        self.assertEqual('Message', self._flash()['message'])

        self.response = self.client.get(reverse(views.keep_var))
        self.assertEqual('Message', self._flash()['message'])

        # Flash value won't be removed now because it was explicitely kept
        self.response = self.client.get(reverse(views.render_template))
        self.assertEqual('Message', self._flash()['message'])

        # Flash value will be removed when this request hits the app
        self.response = self.client.get(reverse(views.render_template))
        self.assertFalse('message' in self._flash())
Get a pixmap representing a possible object traits value.
dataset/ETHPy150Open danielfm/django-flash/src/djangoflash/tests/testproj/app/tests.py/IntegrationTestCase.test_keep_lifecycle--crossover with--dataset/ETHPy150Open enthought/traitsui/traitsui/qt4/image_enum_editor.py/BaseEditor.get_pixmap