'ClearableFileInput.value_from_datadict never returns False if the field
is required.'

def test_clear_input_checked_returns_false_only_if_not_required(self):

    widget = ClearableFileInput()
    widget.is_required = True
    f = SimpleUploadedFile('something.txt', 'content')
    self.assertEqual(widget.value_from_datadict(data={'myfile-clear': True}, files={'myfile': f}, name='myfile'), f)
