I was recently writing Flask integration tests for a form that had a file upload parameter. As it turns out, is isn't as straight forward as I had thought it would be.
A basic file upload test might look like this:
def test_logo(self):
data = dict(logo=