'A ClearableFileInput with is_required False and rendered with
an initial value that is a file renders a clear checkbox.'

def test_clear_input_renders(self):

    widget = ClearableFileInput()
    widget.is_required = False
    self.assertEqual(widget.render('myfile', FakeFieldFile()), u'Currently:    <a    href="something">something</a>    <input    type="checkbox"    name="myfile-clear"    id="myfile-clear_id"    />    <label    for="myfile-clear_id">Clear</label><br    />Change:    <input    type="file"    name="myfile"    />')
