def test_check_value_type(self):
        class F(Form):
            fields = [FileField('inp')]
        request = Request.blank('/', POST=dict(inp='ggg'))
        form = F()
        self.assertEqual(form.accept(request.POST), False)
        self.assertEqual(form.errors.keys(), ['inp'])
Pass string value to FileField
dataset/ETHPy150Open SmartTeleMax/iktomi/tests/forms/fields.py/FileFieldTests.test_check_value_type