py33: align the order of parameters for urlencode()

In Python 3, hash randomization is enabled by default. It causes the
iteration order of dicts and sets to be unpredictable and differ across
Python runs.

In the test case, the fixed expecting string will not match the test
result, it is relying on the dict order.

This change transforms the input dict to a sequence of two-element list,
with fixed order, and update the related expecitng string.

Close-Bug #1231871

Change-Id: Ia998cdb6978fc024dd0d3c9bd161fbdebe68638a
assertEquals is deprecated, use assertEqual

Change-Id: I9b2aaed969b046e0203ffa0c7278dff206cb8cd2
Merge "py33: align the order of parameters for urlencode()"
Merge "assertEquals is deprecated, use assertEqual"