old_contents: import unittest
  from django.test.client import Client
  from django.db import models
  from app.models import FikanoteDB
  
  class EpisodeTest(unittest.TestCase):
      def setUp(self):
          # unittest requires to create Client everytime
          self.client = Client()
  
      def test_get_episode(self):
          episodes = FikanoteDB.objects.order_by('-date')
          for e in episodes:
              target = "/" + str(e.number)
              # GET request 
              response = self.client.get(target)
              # expect to return 200 OK 
              self.assertEqual(response.status_code, 200)
  
new_contents: import unittest
  from django.test.client import Client
  from django.db import models
  from app.models import FikanoteDB
  
  class EpisodeTest(unittest.TestCase):
      def setUp(self):
          # unittest requires to create Client everytime
          self.client = Client()
          self.episodes = FikanoteDB.objects.order_by('-date')
  
      def test_get_episode(self):
          for number in range(1 , len(self.episodes)):
              target = "/" + str(number)
              # GET request 
              response = self.client.get(target)
              # expect to return 200 OK 
              self.assertEqual(response.status_code, 200)
  
      def test_get_episode_incorrect_num(self):
          target = "/" + str(len(self.episodes)+1)
          expectedPath = '/'
          # GET request 
          print target
          response = self.client.get(target)
          self.assertEqual(response.status_code, 302)
          self.assertEqual(urlparse(response.location).path, expectedPath)
          
  
subject: add test case for incorrect number