10 lines
259 B
Python
10 lines
259 B
Python
|
from django.test import TestCase
|
||
|
from django.urls import reverse
|
||
|
|
||
|
|
||
|
class HomeTests(TestCase):
|
||
|
def test_home_view_status_code(self):
|
||
|
url = reverse("home")
|
||
|
response = self.client.get(url)
|
||
|
self.assertEquals(response.status_code, 200)
|