1👍
✅
You can check with the .view_class
attribute attached to the function:
def test_health_hub_update_url_is_resolved(self):
url = reverse('HealthHub:health_hub_update')
self.assertEqual(resolve(url).func.view_class, views.UpdateHealth)
Source:stackexchange.com