#NEWLINE# def test_reuse( self ) : #NEWLINE# #INDENT# self . coupon . redeemed_at = timezone . now ( ) #NEWLINE# self . coupon . save ( ) #NEWLINE# form_data = { #NEWLINE# #INDENT# 'code' : self . coupon . code , #NEWLINE# #UNINDENT# } #NEWLINE# form = CouponForm ( data = form_data , user = self . user ) #NEWLINE# self . assertFalse ( form . is_valid ( ) )