from django.test import TestCase

# Create your tests here.

from django.test import TestCase


class WelcomePageTest(TestCase):
    def test_uses_welcome_template(self):
        response = self.client.get('/')
        self.assertTemplateUsed(response, 'accounts/welcome.html')

Add first unit test for welcome page
Add first unit test for welcome page

  from django.test import TestCase
  
- # Create your tests here.
  
+ class WelcomePageTest(TestCase):
+     def test_uses_welcome_template(self):
+         response = self.client.get('/')
+         self.assertTemplateUsed(response, 'accounts/welcome.html')
+ 
Add first unit test for welcome page
## Code Before:
from django.test import TestCase

# Create your tests here.

## Instruction:
Add first unit test for welcome page
## Code After:
from django.test import TestCase


class WelcomePageTest(TestCase):
    def test_uses_welcome_template(self):
        response = self.client.get('/')
        self.assertTemplateUsed(response, 'accounts/welcome.html')
