title: Python File object to Flask's FileStorage
body: <p>I'm trying to test my upload() method in Flask. The only problem is that the <strong>FileStorage</strong> object in Flask has a method save() which the python <strong>File</strong> object does not have.</p>
  
  <p>I create my file like this:</p>
  
  <pre><code>file = open('documents-test/test.pdf')
  </code></pre>
  
  <p>But I cannot test my upload() method because that method uses save(). </p>
  
  <p>Any ideas how to convert this File object to a Flask Filestorage object?</p>