#NEWLINE# def test_error_class_appears_on_errors( self ) : #NEWLINE# #INDENT# class TestForm ( forms . Form ) : #NEWLINE# #INDENT# name = forms . CharField ( required = True ) #NEWLINE# #UNINDENT# tform = TestForm ( { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) #NEWLINE# out = Template ( '{% load formstamps %}{% stamp_inlineformset_field field %}' ) . render ( Context ( { #NEWLINE# #INDENT# 'field' : tform [ 'name' ] , #NEWLINE# #UNINDENT# } ) ) #NEWLINE# self . assertIn ( 'error' , out )