#NEWLINE# def setUp( self ) : #NEWLINE# #INDENT# 'Setup the SubscriptionUpdateViewTest TestCase' #NEWLINE# self . view = views . SubscriptionUpdateView ( ) #NEWLINE# factory = RequestFactory ( ) #NEWLINE# self . view . request = factory . get ( '/' ) #NEWLINE# self . user = mommy . make ( 'accounts.User' ) #NEWLINE# self . group = mommy . make ( 'groups.Group' ) #NEWLINE# self . user . add_to_group ( factory . group . pk ) #NEWLINE# self . view . request . user = self . user #NEWLINE# self . view . kwargs = { #NEWLINE# #INDENT# 'group_id' : self . group . pk , #NEWLINE# #UNINDENT# }