#NEWLINE# def test_create_settings_post_should_contain_errors( self ) : #NEWLINE# #INDENT# for btype in BUILTIN_TYPE_NAMES : #NEWLINE# #INDENT# response = self . client . post ( ( '/admin/django_settings/setting/add/?typename=%s' % btype ) ) #NEWLINE# adminform = response . context [ 'adminform' ] #NEWLINE# self . assert_equal ( response . status_code , 200 ) #NEWLINE# self . assert_equal ( response . form . errors , { #NEWLINE# #INDENT# 'name' : [ 'This field is required.' ] , #NEWLINE# 'value' : [ 'This field is required.' ] , #NEWLINE# #UNINDENT# } )