The tests are calling response_ok, passing mimetype in the format "xxxx/yyyy".  This is just a convention, but it makes sense, because that's what the function guess_type from the mimetypes module returns.  Also, the name of the header ("Content-Type: ") is constant, so no point repeating it all over the code.