'If the ``clean`` method on a required FileField receives False as the
data, it has the same effect as None: initial is returned if non-empty,
otherwise the validation catches the lack of a required value.'

def test_clean_false_required(self):

    f = forms.FileField(required=True)
    self.assertEqual(f.clean(False, 'initial'), 'initial')
    self.assertRaises(ValidationError, f.clean, False)
