title: Django client get: TypeError: __init__() takes 1 positional argument but 2 were given
body: <p>I have following easy test:</p>
  <pre><code>class DeviceListTests(APITestCase):
      def test_devices_list(self):
          self.user = UserFactory()
          self.device = DeviceFactory(name=&quot;SoundTalks_device&quot;)
          self.client.force_login(self.user)
          response = self.client.get(
              reverse(&quot;device-list&quot;)
          )
  </code></pre>
  <p>Python/Django is returning an error on:</p>
  <pre><code>response = self.client.get(
                  reverse(&quot;device-list&quot;)
              )
  </code></pre>
  <p>However this is an easy request, I get following error:</p>
  <pre><code>Traceback (most recent call last):
    File &quot;/opt/project/integrator_api/devices/tests/test_get_devices.py&quot;, line 15, in test_devices_list
      reverse(&quot;device-list&quot;)
    File &quot;/usr/local/lib/python3.6/site-packages/rest_framework/test.py&quot;, line 286, in get
      response = super().get(path, data=data, **extra)
    File &quot;/usr/local/lib/python3.6/site-packages/rest_framework/test.py&quot;, line 203, in get
      return self.generic('GET', path, **r)
    File &quot;/usr/local/lib/python3.6/site-packages/rest_framework/test.py&quot;, line 232, in generic
      method, path, data, content_type, secure, **extra)
    File &quot;/usr/local/lib/python3.6/site-packages/django/test/client.py&quot;, line 422, in generic
      return self.request(**r)
    File &quot;/usr/local/lib/python3.6/site-packages/rest_framework/test.py&quot;, line 283, in request
      return super().request(**kwargs)
    File &quot;/usr/local/lib/python3.6/site-packages/rest_framework/test.py&quot;, line 235, in request
      request = super().request(**kwargs)
    File &quot;/usr/local/lib/python3.6/site-packages/django/test/client.py&quot;, line 503, in request
      raise exc_value
    File &quot;/usr/local/lib/python3.6/site-packages/django/core/handlers/exception.py&quot;, line 34, in inner
      response = get_response(request)
    File &quot;/usr/local/lib/python3.6/site-packages/django/core/handlers/base.py&quot;, line 115, in _get_response
      response = self.process_exception_by_middleware(e, request)
    File &quot;/usr/local/lib/python3.6/site-packages/django/core/handlers/base.py&quot;, line 113, in _get_response
      response = wrapped_callback(request, *callback_args, **callback_kwargs)
  TypeError: __init__() takes 1 positional argument but 2 were given
  
  app_1      | 
  app_1      | Aborting on container exit...
  Stopping integrator-api_app_1   ... 
  Stopping integrator-api_app_1   ... done
  Process finished with exit code 1
  </code></pre>
  <p>devices/urls.py</p>
  <pre><code>from django.conf.urls import url
  from rest_framework.urlpatterns import format_suffix_patterns
  
  from integrator_api.devices.views.device_list_view import DeviceListView
  
  urlpatterns = format_suffix_patterns(
      [
          url(r&quot;^$&quot;, DeviceListView, name=&quot;device-list&quot;),
      ]
  )
  </code></pre>
  <p>integrator_api/urls.py (project urls)</p>
  <pre><code>from django.urls import path, include
  from integrator_api.devices import urls as device_urls
  
  
  urlpatterns = [
      path(&quot;devices/&quot;, include(device_urls)),
  ]
  </code></pre>