def test_query_string_setter_unicode(self): u = UrlHelper('/foo') u.query_string = 'foo=слово&bar=2' self.assertEqual(u.query['foo'], 'слово') self.assertEqual(u.query['bar'], '2')
def test_query_string_setter(self): u = UrlHelper('/foo') u.query_string = 'foo=1&bar=2' self.assertEqual(u.query['foo'], '1') self.assertEqual(u.query['bar'], '2')