#NEWLINE# def test_add_base_object_licence_ok( self ) : #NEWLINE# #INDENT# data = { #NEWLINE# #INDENT# 'baseobjectlicence_set-TOTAL_FORMS' : 1 , #NEWLINE# 'baseobjectlicence_set-INITIAL_FORMS' : 0 , #NEWLINE# 'baseobjectlicence_set-MIN_NUM_FORMS' : 0 , #NEWLINE# 'baseobjectlicence_set-MAX_NUM_FORMS' : 1000 , #NEWLINE# 'baseobjectlicence_set-0-id' : '' , #NEWLINE# 'baseobjectlicence_set-0-licence' : self . licence . id , #NEWLINE# 'baseobjectlicence_set-0-base_object' : self . bo_1 . id , #NEWLINE# 'baseobjectlicence_set-0-quantity' : 1 , #NEWLINE# #UNINDENT# } #NEWLINE# response = self . client . post ( reverse ( 'admin:licences_licence_assignments' , args = ( self . licence . id , ) ) , data = data , follow = True ) #NEWLINE# self . assertEqual ( response . status_code , 200 ) #NEWLINE# base_object_licence = BaseObjectLicence . objects . filter ( licence = self . licence , base_object = self . bo_1 ) . exists ( ) #NEWLINE# self . assertTrue ( base_object_licence )