#NEWLINE# def test_post( self ) : #NEWLINE# #INDENT# 'Posting valid data should cause a 200 response.' #NEWLINE# self . login ( ) #NEWLINE# response = self . client . post ( self . url , self . data ) #NEWLINE# self . assertEqual ( response . status_code , 200 ) #NEWLINE# self . assertEqual ( len ( self . outbound ) , 1 ) #NEWLINE# msg = self . outbound [ 0 ] #NEWLINE# self . assertEqual ( msg . text , self . message ) #NEWLINE# self . assertTrue ( ( self . connection1 in msg . connections ) ) #NEWLINE# self . assertTrue ( ( self . connection2 in msg . connections ) )