title: get router url name when testing in Django Rest Framework
body: <p>I have some problem. I use routers in Django Rest Framework and I want to test some api methods.</p>
  
  <p>In <strong>urls.py</strong>:</p>
  
  <pre><code>router = DefaultRouter()
  router.register(r'my-list', MyViewSet, base_name="my_list")
  
  urlpatterns = [
      url(r'^api/', include(router.urls,
                            namespace='api'), ),
  
  ]
  </code></pre>
  
  <p>So, in <strong>tests.py</strong> I want to use something like <strong>reverse</strong>. Now I use</p>
  
  <pre><code>response = self.client.get('/api/my-list/')
  </code></pre>
  
  <p>Its a hard coded string, if I use :</p>
  
  <pre><code>response = self.client.get(reverse('api:my_list')
  </code></pre>
  
  <p>I have an error: </p>
  
  <pre><code>django.core.urlresolvers.NoReverseMatch: Reverse for 'my_list' with arguments '()' and keyword arguments '{}' not found. 0 pattern(s) tried: []
  </code></pre>
  
  <p>How to fix that?</p>
  
  <p>Thanks!</p>