#NEWLINE# def test_create_subscription_not_logged_in( self ) : #NEWLINE# #INDENT# self . assertEqual ( 0 , Customer . objects . count ( ) ) #NEWLINE# data = { #NEWLINE# #INDENT# 'plan' : 'test0' , #NEWLINE# 'stripe_token' : 'cake' , #NEWLINE# #UNINDENT# } #NEWLINE# response = self . client . post ( self . url , data ) #NEWLINE# self . assertEqual ( 0 , Customer . objects . count ( ) ) #NEWLINE# self . assertEqual ( response . status_code , status . HTTP_403_FORBIDDEN )