          assert response.data == {"url": "http://testserver/example/notes/123/", "uuid": "123", "text": "foo bar"}
  
  
  class TestLookupValueRegex(TestCase):
      """
      Ensure the router honors lookup_value_regex when applied
      to the viewset.
      """
 
</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"},
        ]
    def test_retrieve_lookup_field_url_encoded_detail_view_(self):
        response = self.client.get('/example/notes/a%20b/')
        assert response.data == {"url": "http://testserver/example/notes/a%20b/", "uuid": "a b", "text": "baz qux"}

          assert response.data == {"url": "http://testserver/example/notes/123/", "uuid": "123", "text": "foo bar"}
  
    def test_retrieve_lookup_field_url_encoded_detail_view_(self):
        response = self.client.get('/example/notes/a%20b/')
        assert response.data == {"url": "http://testserver/example/notes/a%20b/", "uuid": "a b", "text": "baz qux"}

  
  class TestLookupValueRegex(TestCase):
      """
      Ensure the router honors lookup_value_regex when applied
      to the viewset.
      """
keep add keep keep keep keep keep keep
 add URL path unquote to HyperlinkedRelatedField.to_internal_value 
tests/test_routers.py