title: Django url testing
body: <p>urls.py of my web application is as follows</p>
  
  <pre><code>urlpatterns = [
      path('u/&lt;int:unit_id&gt;/', views.unit_view, name='unit_view'),
      path('u/&lt;int:unit_id&gt;/edit/', views.unit_edit, name='unit_edit'),
  ]
  </code></pre>
  
  <p>I tried to write test as following. Unable to run the tests. Not even getting errors</p>
  
  <pre><code>from django.urls import reverse, resolve
  
  
  class TestUrls:
  
      def test_unit_view_url(self):
          path = reverse('unit_view', kwargs={'unit_id': 1})
          assert resolve(path).views.unit_view == 'unit_view'
  
      def test_unit_edit_url(self):
          path = reverse('unit_edit', kwargs={'unit_id': 1})
          assert resolve(path).views.unit_edit == 'unit_edit'
  </code></pre>