<s> from apps . smeuhoverride . tests import BaseTestCase <EOL> from messages . models import Message <EOL> class TestMessages ( BaseTestCase ) : <EOL> def create_message ( self ) : <EOL> message = Message ( sender = self . her , recipient = self . me , <EOL> subject = '<STR_LIT>' , body = '<STR_LIT>' ) <EOL> message . save ( ) <EOL> return message <EOL> def test_reply ( self ) : <EOL> message = self . create_message ( ) <EOL> self . client . post ( '<STR_LIT>' % message . pk , { <EOL> '<STR_LIT:body>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : message . sender . username , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> } ) <EOL> def test_delete ( self ) : <EOL> message = self . create_message ( ) <EOL> self . client . post ( '<STR_LIT>' % message . pk , { <EOL> '<STR_LIT:body>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : message . sender . username , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> } ) <EOL> def test_compose ( self ) : <EOL> self . client . post ( '<STR_LIT>' , { <EOL> '<STR_LIT:body>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : self . her . username , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> } ) </s>
