#NEWLINE# @ patch ( 'pinax.stripe.actions.sources.update_card' ) #NEWLINE# def test_post( self , CreateMock ) : #NEWLINE# #INDENT# self . client . login ( username = self . user . username , password = self . password ) #NEWLINE# response = self . client . post ( reverse ( 'pinax_stripe_payment_method_update' , args = [ self . card . pk ] ) , { #NEWLINE# #INDENT# 'expMonth' : 1 , #NEWLINE# 'expYear' : 2018 , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . assertEquals ( response . status_code , 302 ) #NEWLINE# self . assertRedirects ( response , reverse ( 'pinax_stripe_payment_method_list' ) )