Add sorting to querystring parameters for consistent tests.
Review Request #11662 — Created June 19, 2021 and submitted
Python 2.x and 3.x iterate dicts in different orders, which has
implications for assembling query strings. We have several tests which
urlopenand return fake payloads, which were failing when run
on Python 3.
This change adds sorting to the querystring parameters before we
assemble them into a URL, and fixes up the test URLs to use those.
Ran unit tests on Python 2.7 and 3.9.
E501 line too long (118 > 79 characters)
Revision 2 (+98 -74)
Checks run (2 succeeded)