#NEWLINE# def test_can_authenticate_by_calling_auth_with_oauth_credentials( self ) : #NEWLINE# #INDENT# self . cs = CreateSend ( self . oauth_auth_details ) #NEWLINE# self . cs . stub_request ( 'systemdate.json' , 'systemdate.json' ) #NEWLINE# systemdate = self . cs . systemdate ( ) #NEWLINE# self . assertEquals ( self . cs . headers [ 'Authorization' ] , ( 'Bearer %s' % self . oauth_auth_details [ 'access_token' ] ) ) #NEWLINE# self . assertEquals ( systemdate , '2010-10-15 09:27:00' )