      def test_retrieve_lookup_url_kwarg_detail_view(self):
          response = self.client.get('/example2/notes/fo/')
          assert response.data == {"url": "http://testserver/example/notes/123/", "uuid": "123", "text": "foo bar"}
  
  
  class TestTrailingSlashIncluded(TestCase):
      def setUp(self):
          class NoteViewSet(viewsets.ModelViewSet):
 
</s> remove         assert response.data == [{"url": "http://testserver/example/notes/123/", "uuid": "123", "text": "foo bar"}]
 </s> add         assert response.data == [
            {"url": "http://testserver/example/notes/123/", "uuid": "123", "text": "foo bar"},
            {"url": "http://testserver/example/notes/a%20b/", "uuid": "a b", "text": "baz qux"},
        ] </s> remove             view_name='example', read_only=True)
 </s> add             view_name='example',
            lookup_field='name',
            lookup_url_kwarg='name',
            queryset=self.queryset,
        )
    def test_retrieve_lookup_url_encoded_kwarg_detail_view(self):
        response = self.client.get('/example2/notes/foo%20bar/')
        assert response.data == {"url": "http://testserver/example/notes/123/", "uuid": "123", "text": "foo bar"}

      def test_retrieve_lookup_url_kwarg_detail_view(self):
          response = self.client.get('/example2/notes/fo/')
          assert response.data == {"url": "http://testserver/example/notes/123/", "uuid": "123", "text": "foo bar"}
  
    def test_retrieve_lookup_url_encoded_kwarg_detail_view(self):
        response = self.client.get('/example2/notes/foo%20bar/')
        assert response.data == {"url": "http://testserver/example/notes/123/", "uuid": "123", "text": "foo bar"}

  
  class TestTrailingSlashIncluded(TestCase):
      def setUp(self):
          class NoteViewSet(viewsets.ModelViewSet):
keep keep keep add keep keep keep keep
 add URL path unquote to HyperlinkedRelatedField.to_internal_value 
tests/test_routers.py