3 from org.maemo.hermes.engine.facebook.api import FacebookApi
5 httplib.HTTPConnection.debuglevel = 1
7 class IntegrationTestFacebook(unittest.TestCase):
10 # -----------------------------------------------------------------------
12 self.oauth = oauth2.OAuth2('5916f12942feea4b3247d42a84371112', '19f7538edd96b6870f2da7e84a6390a4', IntegrationTestFacebook.access_token)
13 self.facebook = FacebookApi(self.oauth)
15 # -----------------------------------------------------------------------
16 def test_authenticate(self):
17 self.facebook.authenticate()
18 IntegrationTestFacebook.access_token = self.oauth.get_access_token()
21 # -----------------------------------------------------------------------
22 def test_get_user(self):
23 user = self.facebook.get_user()
28 # -----------------------------------------------------------------------
29 def test_get_friends(self):
30 friends = self.facebook.get_friends()
35 if __name__ == '__main__':