'If ALLOWED_HOSTS is empty and DEBUG is True, all hosts pass.'

@override_settings(DEBUG=True, ALLOWED_HOSTS=[])
def test_host_validation_disabled_in_debug_mode(self):

    request = HttpRequest()
    request.META = {u'HTTP_HOST': u'example.com'}
    self.assertEqual(request.get_host(), u'example.com')
