Refactor encode_multipart_formdata and tests to be easier to read and maintain

Review Request #9653 — Created Feb. 16, 2018 and discarded — Latest diff uploaded

Information

RBTools
master

Reviewers

Refactor encode_multipart_formdata and tests to be easier to read and maintain.

Will update with the remaining fixes.