#NEWLINE# def test_right_code( self ) : #NEWLINE# #INDENT# form_data = { #NEWLINE# #INDENT# 'code' : self . coupon . code , #NEWLINE# #UNINDENT# } #NEWLINE# form = CouponForm ( data = form_data , user = form . user ) #NEWLINE# self . assertTrue ( form . is_valid ( ) )