Permalink
Browse files

Implement User#significant_other

  • Loading branch information...
jgorset committed May 30, 2012
1 parent 796bcdd commit c8688b22fc2084caf8be1d70a1a9b3baf8c28a16
Showing with 4 additions and 0 deletions.
  1. +3 −0 facebook/user.py
  2. +1 −0 tests/test_user.py
View
@@ -72,6 +72,9 @@ class User(entity.Entity):
religion = String('religion')
"""The user's religion."""
+ significant_other = Entity('significant_other', Page)
+ """The user's significant other."""
+
@property
def languages(self):
"""
View
@@ -115,6 +115,7 @@ def test_get(mock):
assert_equal('<quotes>', user.quotes)
assert_equal('Single', user.relationship_status)
assert_equal('Atheist', user.religion)
+ assert_equal(None, user.significant_other)
@patch.object(GraphAPI, 'get')
def test_permissions(mock):

0 comments on commit c8688b2

Please sign in to comment.