old_contents: import pytest
  
  from django.core.urlresolvers import reverse
  
  
  @pytest.mark.django_db
  def test_site_view(client):
      response = client.get(reverse('site-home'))
      assert response.status_code == 200
      assert 'landings/site_home.html' in [template.name for template in response.templates]
  
  
  def test_plain_text_view(client):
      response = client.get(reverse('humans'))
      assert response.status_code == 200
      assert 'humans.txt' in [template.name for template in response.templates]
  
  
  def test_xml_view(client):
      response = client.get(reverse('opensearch'))
      assert response.status_code == 200
      assert 'opensearch.xml' in [template.name for template in response.templates]
  
  
  def test_autocomplete_view(client):
      response = client.get(reverse('autocomplete'), HTTP_X_REQUESTED_WITH=u'XMLHttpRequest')
      assert response.status_code == 200
      assert response['content-type'].split(';')[0] == u'application/json'
  
new_contents: import pytest
  
  from django.core.urlresolvers import reverse
  
  
  @pytest.mark.django_db
  def test_site_view(client):
      response = client.get(reverse('site-home'))
      assert response.status_code == 200
      assert 'landings/site_home.html' in [template.name for template in response.templates]
  
  
  def test_plain_text_view(client):
      response = client.get(reverse('humans'))
      assert response.status_code == 200
      assert 'humans.txt' in [template.name for template in response.templates]
  
  
  def test_wiki_redirect_view(client):
      response = client.get('/wiki/Morning_Musume')
      assert response.status_code == 301
  
  
  def test_xml_view(client):
      response = client.get(reverse('opensearch'))
      assert response.status_code == 200
      assert 'opensearch.xml' in [template.name for template in response.templates]
  
  
  def test_autocomplete_view(client):
      response = client.get(reverse('autocomplete'), HTTP_X_REQUESTED_WITH=u'XMLHttpRequest')
      assert response.status_code == 200
      assert response['content-type'].split(';')[0] == u'application/json'
  
subject: Test the redirect view.