From 788bbbf9e536f82af55aea98fda63a55c4a85992 Mon Sep 17 00:00:00 2001 From: Artem Muterko Date: Mon, 16 Jan 2017 18:38:42 +0200 Subject: [PATCH] Fix failing test --- tests/test_negotiation.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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