#NEWLINE# @ patch ( 'requests.post' ) #NEWLINE# def test_unvalidated_constructor( self , r_post ) : #NEWLINE# #INDENT# 'Credentials with an unverified request token can be constructed' #NEWLINE# credentials = PublicCredentials ( consumer_key = 'key' , consumer_secret = 'secret' , oauth_token = 'token' , oauth_token_secret = 'token_secret' ) #NEWLINE# self . assertEqual ( credentials . state , { #NEWLINE# #INDENT# 'consumer_key' : 'key' , #NEWLINE# 'consumer_secret' : 'secret' , #NEWLINE# 'oauth_token' : 'token' , #NEWLINE# 'oauth_token_secret' : 'token_secret' , #NEWLINE# 'verified' : False , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . assertFalse ( r_post . called )