old_contents: from django.test import Client, TestCase
  from django.core.urlresolvers import reverse
  
  import views
  
  
  class DocsTestCase(TestCase):
  
      def setUp(self):
          self.client = Client()
  
      def test_index(self):
          response = self.client.get(reverse(views.index))
          self.assertEqual(response.status_code, 200)
  
      def test_common_errors(self):
          response = self.client.get(reverse(views.docs_pages, args=("common_errors", )))
          self.assertEqual(response.status_code, 200)
  
      def test_one_liners(self):
          response = self.client.get(reverse(views.docs_pages, args=("one_liners", )))
          self.assertEqual(response.status_code, 200)
  
      def test_technical(self):
          response = self.client.get(reverse(views.docs_pages, args=("technical", )))
          self.assertEqual(response.status_code, 200)
  
      def test_resources(self):
          response = self.client.get(reverse(views.docs_pages, args=("resources", )))
          self.assertEqual(response.status_code, 200)
  
      def test_api(self):
          response = self.client.get(reverse(views.docs_pages, args=("api", )))
          self.assertEqual(response.status_code, 200)
  
      def test_naming_scheme(self):
          response = self.client.get(reverse(views.docs_pages, args=("naming_scheme", )))
          self.assertEqual(response.status_code, 200)
  
new_contents: import os
  
  from django.test import Client, TestCase
  from django.core.urlresolvers import reverse
  
  import views
  
  
  class DocsTestCase(TestCase):
  
      def setUp(self):
          self.client = Client()
  
      def test_index(self):
          response = self.client.get(reverse(views.index))
          self.assertEqual(response.status_code, 200)
  
      def test_doc_pages(self):
          names = os.listdir("docs/other")
          pages = [x.replace("_plain", "").replace(".md", "") for x in names]
          pages += ["technical"]
  
          for page in pages:
              response = self.client.get(reverse(views.docs_pages, args=(page, )))
              self.assertEqual(response.status_code, 200)
  
subject: Generalize the docs tests