title: Unit Testing a Django Form with a FileField
body: <p>I have a form like:</p>
  
  <pre><code>#forms.py
  from django import forms
  
  class MyForm(forms.Form):
      title = forms.CharField()
      file = forms.FileField()
  
  
  #tests.py
  from django.test import TestCase
  from forms import MyForm
  
  class FormTestCase(TestCase)
      def test_form(self):
          upload_file = open('path/to/file', 'r')
          post_dict = {'title': 'Test Title'}
          file_dict = {} #??????
          form = MyForm(post_dict, file_dict)
          self.assertTrue(form.is_valid())
  </code></pre>
  
  <p>How do I construct the <em>file_dict</em> to pass <em>upload_file</em> to the form?</p>