#NEWLINE# def testRemovedUser( self ) : #NEWLINE# #INDENT# 'Tests that user who has been removed from a viewpoint can see limited metadata.' #NEWLINE# self . _CreateSimpleTestAssets ( ) #NEWLINE# ( vp_id , _ ) = self . _ShareSimpleTestAssets ( [ self . _user2 . user_id ] ) #NEWLINE# self . _tester . RemoveViewpoint ( self . _cookie2 , vp_id ) #NEWLINE# response_dict = self . _tester . QueryFollowed ( self . _cookie2 ) #NEWLINE# self . assertEqual ( len ( response_dict [ 'viewpoints' ] ) , 2 ) #NEWLINE# for attr_name in response_dict [ 'viewpoints' ] [ 0 ] : #NEWLINE# #INDENT# self . assertIn ( attr_name , [ 'viewpoint_id' , 'type' , 'follower_id' , 'user_id' , 'timestamp' , 'labels' , 'adding_user_id' ] )