#NEWLINE# def testProspectiveUser( self ) : #NEWLINE# #INDENT# 'Tests that a prospective user can access metadata for all followed viewpoints.' #NEWLINE# self . _CreateSimpleTestAssets ( ) #NEWLINE# ( prospective_user , vp_id , ep_id ) = self . _CreateProspectiveUser ( ) #NEWLINE# prospective_cookie = self . _tester . GetSecureUserCookie ( user_id = prospective_user . user_id , device_id = prospective_user . webapp_dev_id , user_name = None , viewpoint_id = vp_id ) #NEWLINE# ( vp_id2 , ep_ids2 ) = self . _tester . ShareNew ( prospective_user . _cookie , [ ( self . _episode_id2 , self . _photo_ids2 ) ] , [ 'Email:prospective@emailscrubbed.com' ] ) #NEWLINE# response_dict = self . _tester . QueryFollowed ( prospective_cookie ) #NEWLINE# self . assertEqual ( len ( response_dict [ 'viewpoints' ] ) , 3 ) #NEWLINE# self . assertIn ( 'cover_photo' , response_dict [ 'viewpoints' ] [ 0 ] ) #NEWLINE# self . assertIn ( 'update_seq' , response_dict [ 'viewpoints' ] [ 1 ] ) #NEWLINE# self . assertIn ( 'viewed_seq' , response_dict [ 'viewpoints' ] [ 2 ] )