#NEWLINE# def test_custom_none_value( self ) : #NEWLINE# #INDENT# self . create_cities ( ) #NEWLINE# MyForm = self . create_form ( allow_blank = True , blank_text = 'Choose city...' , blank_value = '' ) #NEWLINE# form = MyForm ( DummyPostData ( { #NEWLINE# #INDENT# 'city' : '' , #NEWLINE# #UNINDENT# } ) ) #NEWLINE# assert form . validate ( ) , form . errors #NEWLINE# assert ( '<option selected value="">Choose city...</option>' in str ( form . city ) )