tests.py 254 B

12345678910
  1. from django.urls import resolve
  2. from django.test import TestCase
  3. from lists.views import home_page
  4. class HomePageTest(TestCase):
  5. def test_url_resolves_to_home_page(self):
  6. found = resolve('/')
  7. self.assertEqual(found.func, home_page)