'A ClearableFileInput with is_required=False does not render a clear
checkbox.'

def test_clear_input_renders_only_if_not_required(self):

    widget = ClearableFileInput()
    widget.is_required = True
    self.check_html(widget, 'myfile', FakeFieldFile(), html='\n                                                Currently:    <a    href="something">something</a>    <br    />\n                                                Change:    <input    type="file"    name="myfile"    />\n                                                ')
