File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -96,7 +96,7 @@ class TestHyperlinkedRelatedField(APISimpleTestCase):
96
96
def setUp (self ):
97
97
self .queryset = MockQueryset ([
98
98
MockObject (pk = 1 , name = 'foobar' ),
99
- MockObject (pk = 2 , name = 'baz qux ' ),
99
+ MockObject (pk = 2 , name = 'bazABCqux ' ),
100
100
])
101
101
self .field = serializers .HyperlinkedRelatedField (
102
102
view_name = 'example' ,
@@ -116,7 +116,7 @@ def test_hyperlinked_related_lookup_exists(self):
116
116
assert instance is self .queryset .items [0 ]
117
117
118
118
def test_hyperlinked_related_lookup_url_encoded_exists (self ):
119
- instance = self .field .to_internal_value ('http://example.org/example/baz%20qux /' )
119
+ instance = self .field .to_internal_value ('http://example.org/example/baz%41%42%43qux /' )
120
120
assert instance is self .queryset .items [1 ]
121
121
122
122
def test_hyperlinked_related_lookup_does_not_exist (self ):
You can’t perform that action at this time.
0 commit comments