#NEWLINE# def test_label_bound_to_field( self ) : #NEWLINE# #INDENT# class TestForm ( forms . Form ) : #NEWLINE# #INDENT# name = forms . CharField ( ) #NEWLINE# #UNINDENT# tform = TestForm ( ) #NEWLINE# out = Template ( '{% load formstamps %}{% stamp_regular_field field %}' ) . render ( Context ( { #NEWLINE# #INDENT# 'field' : out [ 'name' ] , #NEWLINE# #UNINDENT# } ) ) #NEWLINE# self . assertIn ( '<label for="id_name">' , out )