#NEWLINE# def test_group_name_added_to_forms( self ) : #NEWLINE# #INDENT# 'Test that group_name is added to each form instance.' #NEWLINE# subscription_update_view = views . SubscriptionsUpdateView . as_view ( ) #NEWLINE# request = self . request_factory . get ( '/' ) #NEWLINE# request . user = self . user2 #NEWLINE# response = subscription_update_view ( request ) #NEWLINE# for form in response . context_data [ 'formset' ] : #NEWLINE# #INDENT# self . assertEqual ( form . group_name , form . instance . group . group . name )