<s> from __future__ import unicode_literals <EOL> import pytest <EOL> pytestmark = pytest . mark . django_db <EOL> from django . core . urlresolvers import reverse <EOL> import logging <EOL> from rest_framework import status <EOL> from django . conf import settings <EOL> import requests <EOL> from . fixtures import client <EOL> from . util import ( <EOL> assert_created , assert_deleted , assert_error , assert_success , TestSite <EOL> ) <EOL> log = logging . getLogger ( __name__ ) <EOL> def test_request_xforwardfor ( live_server ) : <EOL> """<STR_LIT>""" <EOL> url = '<STR_LIT>' . format ( live_server . url ) <EOL> headers = { <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : '<STR_LIT>' <EOL> } <EOL> expected = [ ] <EOL> assert_success ( <EOL> requests . get ( url , headers = headers ) , <EOL> expected <EOL> ) </s>
