from django.test import TestCase

# Create your tests here.

from django.test import TestCase
from django.urls import reverse

from contentpages.views import ContentPage


class TestContentPage(TestCase):

    def test_get_template(self):

        # test that the template view uses the template requested
        # using pliny as a view that will always be present
        route = reverse('content:render', kwargs={'template': 'pliny'})
        res = self.client.get(route)
        self.assertTemplateUsed(res, 'contentpages/pliny.html')

Add coverage for content pages functionality
Add coverage for content pages functionality

  from django.test import TestCase
+ from django.urls import reverse
  
- # Create your tests here.
+ from contentpages.views import ContentPage
  
+ 
+ class TestContentPage(TestCase):
+ 
+     def test_get_template(self):
+ 
+         # test that the template view uses the template requested
+         # using pliny as a view that will always be present
+         route = reverse('content:render', kwargs={'template': 'pliny'})
+         res = self.client.get(route)
+         self.assertTemplateUsed(res, 'contentpages/pliny.html')
+ 
Add coverage for content pages functionality
## Code Before:
from django.test import TestCase

# Create your tests here.

## Instruction:
Add coverage for content pages functionality
## Code After:
from django.test import TestCase
from django.urls import reverse

from contentpages.views import ContentPage


class TestContentPage(TestCase):

    def test_get_template(self):

        # test that the template view uses the template requested
        # using pliny as a view that will always be present
        route = reverse('content:render', kwargs={'template': 'pliny'})
        res = self.client.get(route)
        self.assertTemplateUsed(res, 'contentpages/pliny.html')
