#NEWLINE# def test_get_raw_request_token_missing_request_token_url( self ) : #NEWLINE# #INDENT# self . service . request_token_url = None #NEWLINE# resp = 'oauth_token=foo&oauth_token_secret=bar' #NEWLINE# self . response . content = resp #NEWLINE# with self . assertRaises ( TypeError ) as e : #NEWLINE# #INDENT# self . service . get_raw_request_token ( ) #NEWLINE# #UNINDENT# self . assertEqual ( str ( e . exception ) , 'request_token_url must not be None' )