mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-05 13:00:12 +03:00
Fix failing test
This commit is contained in:
parent
aab5195649
commit
788bbbf9e5
|
@ -73,4 +73,8 @@ class TestAcceptedMediaType(TestCase):
|
||||||
|
|
||||||
def test_mediatype_string_representation(self):
|
def test_mediatype_string_representation(self):
|
||||||
mediatype = _MediaType('test/*; foo=bar')
|
mediatype = _MediaType('test/*; foo=bar')
|
||||||
assert str(mediatype) == "test/*; foo=b'bar'"
|
params_str = ''
|
||||||
|
for key, val in mediatype.params.items():
|
||||||
|
params_str += '; %s=%s' % (key, val)
|
||||||
|
expected = 'test/*' + params_str
|
||||||
|
assert str(mediatype) == expected
|
||||||
|
|
Loading…
Reference in New Issue
Block a user