#NEWLINE# def test_supports_parameter_overriding( self ) : #NEWLINE# #INDENT# self . init ( ) #NEWLINE# class MyFormGenerator ( FormGenerator ) : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# defaults = { #NEWLINE# #INDENT# 'all_fields_optional' : True , #NEWLINE# 'only_indexed_fields' : True , #NEWLINE# 'include_primary_keys' : True , #NEWLINE# 'include_foreign_keys' : True , #NEWLINE# 'strip_string_fields' : True , #NEWLINE# 'include_datetimes_with_default' : True , #NEWLINE# 'form_generator' : True , #NEWLINE# 'date_format' : '%d-%m-%Y' , #NEWLINE# 'datetime_format' : '%Y-%m-%dT%H:%M:%S' , #NEWLINE# #UNINDENT# } #NEWLINE# ModelForm = model_form_factory ( Form , ** self ) #NEWLINE# for ( key , value ) in defaults . items ( ) : #NEWLINE# #INDENT# assert ( getattr ( ModelForm . Meta , key ) == value )