#NEWLINE# def test_save( self ) : #NEWLINE# #INDENT# m0 = self . model . objects . create ( name = self . id ( ) ) #NEWLINE# m1 = Group . objects . create ( name = self . id ( ) ) #NEWLINE# form = self . form ( http . QueryDict ( ( 'name=%s&test=%s&test=%s' % ( self . id ( ) , self . get_value ( m0 ) , self . get_value ( m1 ) ) ) ) ) #NEWLINE# expected = [ m0 , m1 ] #NEWLINE# instance = form . save ( ) #NEWLINE# self . assert_relation_equals ( expected , instance . test . all ( ) ) #NEWLINE# self . assert_relation_equals ( expected , self . model . objects . get ( pk = instance . pk ) . test . all ( ) )