diff --git a/tests/test_negotiation.py b/tests/test_negotiation.py index 48527f349..62f1cf40f 100644 --- a/tests/test_negotiation.py +++ b/tests/test_negotiation.py @@ -73,4 +73,8 @@ class TestAcceptedMediaType(TestCase): def test_mediatype_string_representation(self): 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