from django.urls import reverse
from django.urls import resolve
from django.test import TestCase
from .views import home

class HomeTest(TestCase):
    def test_home_view_stauts_code(self):
        url=reverse('home')
        response=self.client.get(url)
        self.assertEquals(response.status_code,200)

    def test_home_url_resolves_home_view(self):
        view=resolve('/')
        self.assertEquals(view.func,home)

# Create your tests here.
