tests: Deduplicate boilerplate when POSTing/PUTing a zip archive.
It makes it clearer which are the important arguments for the test.