from django.test import TestCase

# Create your tests here.

from django.core.urlresolvers import resolve
from django.test import TestCase

from layout.views import home


class HomePageTest(TestCase):

    def test_root_url_resolves_to_home_page(self):
        found = resolve('/')
        self.assertEqual(found.func, home)

Add home page resolve test to layout
Add home page resolve test to layout

+ from django.core.urlresolvers import resolve
  from django.test import TestCase
  
- # Create your tests here.
+ from layout.views import home
  
+ 
+ class HomePageTest(TestCase):
+ 
+     def test_root_url_resolves_to_home_page(self):
+         found = resolve('/')
+         self.assertEqual(found.func, home)
+ 
Add home page resolve test to layout
## Code Before:
from django.test import TestCase

# Create your tests here.

## Instruction:
Add home page resolve test to layout
## Code After:
from django.core.urlresolvers import resolve
from django.test import TestCase

from layout.views import home


class HomePageTest(TestCase):

    def test_root_url_resolves_to_home_page(self):
        found = resolve('/')
        self.assertEqual(found.func, home)
