'Simulate setting the marketing site cookie on the request.'

def set_logged_in_cookies(self, request):

    request.COOKIES[django_settings.EDXMKTG_LOGGED_IN_COOKIE_NAME] = 'true'
    request.COOKIES[django_settings.EDXMKTG_USER_INFO_COOKIE_NAME] = json.dumps({'version': django_settings.EDXMKTG_USER_INFO_COOKIE_VERSION})
