def test_host_strip_referer(self):
        expected_referer = '/test'
        request = _FakeRequest()
        request.META["HTTP_REFERER"] = request.META['HTTP_HOST'] + expected_referer
        self.assertEqual(clean_http_referer(request), expected_referer)
Create a replication controller.
dataset/ETHPy150Open django-erp/django-erp/djangoerp/core/tests.py/CleanHTTPRefererCase.test_host_strip_referer--crossover with--dataset/ETHPy150Open openstack/python-magnumclient/magnumclient/v1/replicationcontrollers_shell.py/do_rc_create