def _TestFakeAuthViewfinderUser(action, tester, user_dict, device_dict=None, user_cookie=None):
 if ('email' in user_dict):
  ident_dict = {'key': ('Email:%s' % user_dict['email']), 'authority': 'FakeViewfinder'}
 else:
  ident_dict = {'key': ('Phone:%s' % user_dict['phone']), 'authority': 'FakeViewfinder'}
 response = _AuthViewfinderUser(tester, action, user_dict, ident_dict, device_dict, user_cookie)
 return auth_test._ValidateAuthUser(tester, action, user_dict, ident_dict, device_dict, user_cookie, response)

def _TestFakeAuthViewfinderUser ( action , tester , user_dict , device_dict = None , user_cookie = None ) : if ( 'email' in user_dict ) : ident_dict = { 'key' : ( 'Email:%s' % user_dict [ 'email' ] ) , 'authority' : 'FakeViewfinder' } else : ident_dict = { 'key' : ( 'Phone:%s' % user_dict [ 'phone' ] ) , 'authority' : 'FakeViewfinder' } response = _AuthViewfinderUser ( tester , action , user_dict , ident_dict , device_dict , user_cookie ) return auth_test . _ValidateAuthUser ( tester , action , user_dict , ident_dict , device_dict , user_cookie , response )
called by the servicetester in order to test login/fakeviewfinder and register/fakeviewfinder service endpoints .