def test_parsing(self): qsstring = "a=1&b=2&a=3" qs = urllib_parse.parse_qs(qsstring) qsl = list(qs_to_qsl(qs)) self.assertIn(('a', '1'), qsl) self.assertIn(('a', '3'), qsl) self.assertIn(('b', '2'), qsl)
def test_parsing(self): qsstring = "a=1&b=2&a=3" qs = urllib.parse.parse_qs(qsstring) qsl = list(qs_to_qsl(qs)) self.assertIn(("a", "1"), qsl) self.assertIn(("a", "3"), qsl) self.assertIn(("b", "2"), qsl)