#NEWLINE# def test_multi_select_form_field( self ) : #NEWLINE# #INDENT# data = { #NEWLINE# #INDENT# 'name' : 'Some Name' , #NEWLINE# 'submit_url' : '/form/' , #NEWLINE# 'success_url' : '/done/form/' , #NEWLINE# 'form_template' : 'template1.html' , #NEWLINE# 'success_template' : 'template2.html' , #NEWLINE# 'fields-TOTAL_FORMS' : 0 , #NEWLINE# 'fields-INITIAL_FORMS' : 0 , #NEWLINE# 'fields-MAX_NUM_FORMS' : 1000 , #NEWLINE# '_save' : True , #NEWLINE# #UNINDENT# } #NEWLINE# self . user = User . objects . create_superuser ( username = 'admin' , password = 'password' , email = 'admin@localhost' ) #NEWLINE# self . client . login ( username = 'admin' , password = 'password' ) #NEWLINE# response = self . client . post ( '/admin/dynamic_forms/formmodel/add/' , data ) #NEWLINE# self . assertEqual ( response . status_code , 200 ) #NEWLINE# self . assertContains ( response , '<li>This field is required.</li>' , count = 1 , html = True )