#NEWLINE# def test_schedule( self ) : #NEWLINE# #INDENT# msg = TestMessagePlain ( 'schedule1' ) #NEWLINE# ( model , _ ) = msg . schedule ( ) #NEWLINE# self . assertEqual ( user . cls , msg . get_alias ( ) ) #NEWLINE# self . assertEqual ( model . context , msg . get_context ( ) ) #NEWLINE# self . assertIsNone ( model . sender ) #NEWLINE# user = User ( ) #NEWLINE# user . save ( ) #NEWLINE# msg = TestMessagePlain ( 'schedule2' ) #NEWLINE# ( model , _ ) = msg . schedule ( sender = user ) #NEWLINE# self . assertEqual ( model . sender , user )