builder = EnvironBuilder(path='/v0/scenes/bucket/foo', method='POST', data=
    {'image': (StringIO('fake image'), 'image.png')}, headers={
    'content-md5': 'some hash'})
Flask and Werkzeug: Testing a post request with custom headers