

def test_value_from_files(self):
    'Get uploaded file from the FILES as normal.'
    f = SimpleUploadedFile('something.txt', b'content')
    value = self.widget.value_from_datadict(data={
        
    }, files={
        'myfile': f,
    }, name='myfile')
    self.assertEqual(value, f)

dataset/ETHPy150Open caktus/django-sticky-uploads/stickyuploads/tests/test_widgets.py StickyUploadWidgetTestCase.test_value_from_files/original