mirror of
				https://github.com/django/django.git
				synced 2025-10-31 01:25:32 +00:00 
			
		
		
		
	[1.7.x] Updated tests per previous commit.
Backport of 86c74eacd6 from master
			
			
This commit is contained in:
		| @@ -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', | ||||
|   | ||||
		Reference in New Issue
	
	Block a user