#NEWLINE# def test_valid( self ) : #NEWLINE# #INDENT# data = self . formdata #NEWLINE# data . update ( self . formsetdata ) #NEWLINE# data . update ( self . formsetmgmt ) #NEWLINE# response = self . client . post ( '/edit/inlineformsets/' , data ) #NEWLINE# self . assertEqual ( Article . objects . count ( ) , 3 ) #NEWLINE# self . assertEqual ( Author . objects . count ( ) , 1 ) #NEWLINE# self . assertEqual ( response . status_code , 302 )