diff options
| author | Tim Graham <timograham@gmail.com> | 2014-07-05 20:20:19 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2014-07-05 20:20:55 -0400 |
| commit | 4b30bddb7a01dca77d0d6c2958b47add1f072c94 (patch) | |
| tree | 2aa13ca4c0fc026e761568e91b8bbae1eff37333 | |
| parent | 7f84f7fba7a2c967d7153644fbfaf62e4ed6dc5e (diff) | |
[1.7.x] Updated tests per previous commit.
Backport of 86c74eacd6 from master
| -rw-r--r-- | tests/requests/tests.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/requests/tests.py b/tests/requests/tests.py index 3baee7994b..274fcf5a8c 100644 --- a/tests/requests/tests.py +++ b/tests/requests/tests.py @@ -649,8 +649,8 @@ class HostValidationTests(SimpleTestCase): def test_get_host_suggestion_of_allowed_host(self): """get_host() makes helpful suggestions if a valid-looking host is not in ALLOWED_HOSTS.""" msg_invalid_host = "Invalid HTTP_HOST header: %r." - msg_suggestion = msg_invalid_host + "You may need to add %r to ALLOWED_HOSTS." - msg_suggestion2 = msg_invalid_host + "The domain name provided is not valid according to RFC 1034/1035" + msg_suggestion = msg_invalid_host + " You may need to add %r to ALLOWED_HOSTS." + msg_suggestion2 = msg_invalid_host + " The domain name provided is not valid according to RFC 1034/1035" for host in [ # Valid-looking hosts 'example.com', |
