summaryrefslogtreecommitdiff
path: root/docs/topics/testing/advanced.txt
diff options
context:
space:
mode:
Diffstat (limited to 'docs/topics/testing/advanced.txt')
-rw-r--r--docs/topics/testing/advanced.txt5
1 files changed, 4 insertions, 1 deletions
diff --git a/docs/topics/testing/advanced.txt b/docs/topics/testing/advanced.txt
index 3b5b234481..2cae3325a6 100644
--- a/docs/topics/testing/advanced.txt
+++ b/docs/topics/testing/advanced.txt
@@ -152,7 +152,10 @@ example, the test suite for docs.djangoproject.com includes the following::
class SearchFormTestCase(TestCase):
def test_empty_get(self):
- response = self.client.get('/en/dev/search/', HTTP_HOST='docs.djangoproject.dev:8000')
+ response = self.client.get(
+ "/en/dev/search/",
+ headers={"host": "docs.djangoproject.dev:8000"},
+ )
self.assertEqual(response.status_code, 200)
and the settings file includes a list of the domains supported by the project::