Skip to content

Commit

Permalink
add comments and specify version=2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew Madurski committed Mar 1, 2015
1 parent cf83c7f commit c0d52f7
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions test/test_facebook.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,13 +132,14 @@ def test_auth_url(self):

class TestGetObject(FacebookTestCase):
def test_get_object(self):
# The value we are passing as 'fields' is valid only in 2.1+.
graph = facebook.GraphAPI(access_token=facebook.get_app_access_token(
self.app_id, self.secret), version=2.0)

self.app_id, self.secret), version=2.1)
# We should be able to use 'id' as a keyword argument.
graph_obj = graph.get_object(
'', id='http://facebook.com', fields='og_object{comments}')

self.assertIsNotNone(graph_obj)
self.assertTrue(graph_obj is not None)


if __name__ == '__main__':
Expand Down

0 comments on commit c0d52f7

Please sign in to comment.