          assert response.status_code == status.HTTP_404_NOT_FOUND
  
      def test_invalid_host_name_versioning(self):
          scheme = versioning.HostNameVersioning
          view = RequestInvalidVersionView.as_view(versioning_class=scheme)
  
          request = factory.get('/endpoint/', HTTP_HOST='v3.example.org')
          response = view(request)
 
</s>
    @override_settings(ALLOWED_HOSTS=['*'])
          assert response.status_code == status.HTTP_404_NOT_FOUND
  
    @override_settings(ALLOWED_HOSTS=['*'])
      def test_invalid_host_name_versioning(self):
          scheme = versioning.HostNameVersioning
          view = RequestInvalidVersionView.as_view(versioning_class=scheme)
  
          request = factory.get('/endpoint/', HTTP_HOST='v3.example.org')
          response = view(request)
keep add keep keep keep keep keep keep
 Resolve tests against Django master (#4218)
tests/test_versioning.py