'Test if extend_access_token requests the correct endpoint.
Note that this only tests whether extend_access_token returns the
correct error message when called without a proper user-access token.'

def test_extend_access_token(self):

    try:
        facebook.GraphAPI().extend_access_token(self.app_id, self.secret)
    except facebook.GraphAPIError as e:
        self.assertEqual(e.message, 'fb_exchange_token    parameter    not    specified')
