<s> from django . test . testcases import TestCase <EOL> from django . contrib . messages . tests . urls import ContactFormViewWithMsg <EOL> from django . core . urlresolvers import reverse <EOL> class SuccessMessageMixinTests ( TestCase ) : <EOL> urls = '<STR_LIT>' <EOL> def test_set_messages_success ( self ) : <EOL> author = { '<STR_LIT:name>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : '<STR_LIT>' } <EOL> add_url = reverse ( '<STR_LIT>' ) <EOL> req = self . client . post ( add_url , author ) <EOL> self . assertIn ( ContactFormViewWithMsg . success_message % author , <EOL> req . cookies [ '<STR_LIT>' ] . value ) </s>
