'The value of data will more than likely come from request.FILES. The
value of initial data will likely be a filename stored in the database.
Since its value is of no use to a FileField it is ignored.'

def test_filefield_changed(self):

    f = FileField()
    self.assertFalse(f.has_changed('', None))
    self.assertTrue(f.has_changed('', {'filename': 'resume.txt', 'content': 'My    resume'}))
    self.assertFalse(f.has_changed('resume.txt', None))
    self.assertTrue(f.has_changed('resume.txt', {'filename': 'resume.txt', 'content': 'My    resume'}))
