Module Expr Str Assign NameStore ListLoad Str Str Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Dict Str Num keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str For NameStore Call NameLoad Num body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad attr ListLoad TupleLoad Str NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Dict Str Num keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr keyword Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad SubscriptLoad NameLoad Index Str Num AugAssignAdd AttributeStore NameLoad attr Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr keyword Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad SubscriptLoad NameLoad Index Str Num AugAssignAdd AttributeStore NameLoad attr Num Assign NameStore BinOpSub Call AttributeLoad NameLoad attr Num For NameStore Call NameLoad Num body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad attr ListLoad TupleLoad Str NameLoad NameLoad AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Dict Str Num keyword AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr keyword Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad SubscriptLoad NameLoad Index Str Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Dict Str Num keyword AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Dict Str Num keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Str Expr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Num AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Num AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Num AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Dict Str Num keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Num AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str decorator_list decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad Dict NameLoad Return NameLoad decorator_list
N/A N/A Test unlink_identity service API.
 N/A __authors__ N/A spencer@emailscrubbed.com (Spencer Kimball) andy@emailscrubbed.com (Andy Kimball) N/A time copy deepcopy viewfinder.backend.base util viewfinder.backend.db.contact Contact viewfinder.backend.db.identity Identity viewfinder.backend.www.test service_base_test UnlinkIdentityTestCase N/A N/A service_base_test ServiceBaseTestCase N/A testUnlinkIdentity N/A N/A self N/A N/A N/A Test basic unlinking of identities. N/A N/A N/A N/A self _tester LinkFacebookUser N/A id 100 user_cookie N/A self _cookie N/A N/A N/A self assertEqual N/A len N/A N/A N/A self _tester ListIdentities N/A self _cookie 2 N/A N/A N/A N/A self _tester UnlinkIdentity N/A self _cookie FacebookGraph:100 N/A N/A N/A N/A self _tester UnlinkIdentity N/A self _cookie FacebookGraph:100 N/A N/A N/A self assertEqual N/A len N/A N/A N/A self _tester ListIdentities N/A self _cookie 1 N/A testUnlinkContacts N/A N/A self N/A N/A N/A Test unlinking identity that is referenced by contacts. N/A i N/A xrange 3 N/A N/A contact_dict N/A N/A Contact CreateContactDict N/A N/A N/A self _users N/A i user_id N/A N/A FacebookGraph:100 None N/A util _TEST_TIME N/A Contact FACEBOOK rank i N/A N/A N/A self _UpdateOrAllocateDBObject Contact contact_dict N/A N/A N/A N/A self _tester LinkFacebookUser N/A id 100 user_cookie N/A self _cookie N/A response_dict N/A N/A N/A self _tester QueryContacts N/A self _cookie2 start_key N/A N/A Contact CreateSortKey None N/A util _TEST_TIME N/A N/A N/A self assertEqual N/A len N/A response_dict N/A contacts 1 N/A N/A util _TEST_TIME 1 N/A N/A N/A N/A self _tester UnlinkIdentity N/A self _cookie FacebookGraph:100 N/A response_dict N/A N/A N/A self _tester QueryContacts N/A self _cookie2 start_key N/A N/A Contact CreateSortKey None N/A util _TEST_TIME N/A N/A N/A self assertEqual N/A len N/A response_dict N/A contacts 1 N/A N/A util _TEST_TIME 1 N/A timestamp N/A N/A N/A time time 100 N/A i N/A xrange 3 N/A N/A contact_dict N/A N/A Contact CreateContactDict N/A N/A N/A self _users N/A i user_id N/A N/A FacebookGraph:101 None timestamp N/A Contact FACEBOOK rank i N/A contact N/A N/A self _UpdateOrAllocateDBObject Contact contact_dict N/A N/A N/A N/A self _tester LinkFacebookUser N/A id 101 user_cookie N/A self _cookie N/A N/A N/A N/A self _tester UnlinkIdentity N/A self _cookie FacebookGraph:101 N/A response_dict N/A N/A N/A self _tester QueryContacts N/A self _cookie3 start_key N/A N/A Contact CreateSortKey None N/A util _TEST_TIME N/A N/A N/A self assertEqual N/A len N/A response_dict N/A contacts 1 N/A testLinkAfterUnlink N/A N/A self N/A N/A N/A Link an identity to a different user after unlinking it. N/A N/A N/A N/A self _tester LinkFacebookUser N/A id 100 user_cookie N/A self _cookie N/A N/A N/A N/A self _tester UnlinkIdentity N/A self _cookie FacebookGraph:100 N/A N/A N/A N/A self _tester LinkFacebookUser N/A id 100 user_cookie N/A self _cookie2 N/A N/A N/A self assertEqual N/A len N/A N/A N/A self _tester ListIdentities N/A self _cookie2 2 N/A testUnlinkUnboundIdentity N/A N/A self N/A N/A N/A ERROR: Try to unlink an identity that exists, but is not bound to any user. N/A identity_key Email:new.user@emailscrubbed.com N/A N/A N/A self _UpdateOrAllocateDBObject Identity key identity_key N/A N/A N/A self assertRaisesHttpError 403 N/A N/A self _tester UnlinkIdentity N/A self _cookie identity_key N/A testNonCanonicalId N/A N/A self N/A N/A N/A ERROR: Try to unlink identity using non-canonical form. N/A N/A N/A self assertRaisesHttpError 400 N/A N/A self _tester UnlinkIdentity N/A self _cookie Email:User1@Yahoo.com N/A testUnlinkLastAuthorizedIdentity N/A N/A self N/A N/A N/A ERROR: Verify the last authorized identity cannot be unlinked. N/A N/A N/A self assertRaisesHttpError 403 N/A N/A self _tester UnlinkIdentity N/A self _cookie Email:user1@emailscrubbed.com N/A testUnlinkIdentityWithoutPermission N/A N/A self N/A N/A N/A ERROR: Verify identity cannot be unlinked without permission. N/A N/A N/A N/A self _tester LinkFacebookUser N/A id 100 user_cookie N/A self _cookie N/A N/A N/A self assertRaisesHttpError 403 N/A N/A self _tester UnlinkIdentity N/A self _cookie2 FacebookGraph:100 N/A testUnknownScheme N/A N/A self N/A N/A N/A ERROR: Try to unlink identity with unknown scheme. N/A N/A N/A self assertRaisesHttpError 400 N/A N/A self _tester UnlinkIdentity N/A self _cookie Unknown:foo N/A N/A _TestUnlinkIdentity N/A N/A tester user_cookie request_dict N/A N/A N/A Called by the ServiceTester in order to test unlink_identity service API call. N/A validator N/A tester validator N/A N/A user_id device_id N/A N/A tester GetIdsFromCookie user_cookie N/A request_dict N/A deepcopy request_dict N/A actual_dict N/A N/A tester SendRequest unlink_identity user_cookie request_dict N/A op_dict N/A N/A tester _DeriveNotificationOpDict user_id device_id request_dict N/A N/A N/A validator ValidateUnlinkIdentity op_dict N/A request_dict N/A identity N/A N/A N/A tester _CompareResponseDicts unlink_identity user_id request_dict N/A actual_dict N/A actual_dict N/A