Compare raw API payloads to byte strings during API testing.

Review Request #10468 — Created March 27, 2019 and submitted

Information

Djblets
release-1.0.x

Reviewers

HTTP response data is represented as byte strings, and on Python 2 we
were able to compare to either bytes or Unicode without problems, but
this isn't the case with Python 3. Our API testing helpers were
incorrectly comparing to Unicode prior to this change.

Djblets and Review Board unit tests pass.

Summary ID
Compare raw API payloads to byte strings during API testing.
HTTP response data is represented as byte strings, and on Python 2 we were able to compare to either bytes or Unicode without problems, but this isn't the case with Python 3. Our API testing helpers were incorrectly comparing to Unicode prior to this change.
eb2825dee4a17d211af956ab3dccdf4f7aeb8179
david
  1. Ship It!
  2. 
      
chipx86
Review request changed
Status:
Completed
Change Summary:
Pushed to release-2.0.x (1b37eea)