Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(5)  |  Call(5)  |  Derive(0)  |  Import(0)

src/a/r/archetypes.uploadreferencewidget-0.2.1/archetypes/uploadreferencewidget/tests/test_widget.py   archetypes.uploadreferencewidget(Download)
        }
        expected = [self.image.UID()], {}
        result = self.field.widget.process_form(self.doc, self.field, form,
                                                validating=False)
        self.assertEqual(expected, result)
            'relatedItems_file': [fileupload],
        }
        value, errors = self.field.widget.process_form(self.doc, self.field,
                                                       form, validating=False)
        result = self.field.validate(value, self.doc, errors)
            'relatedItems_file': [fileupload],
        }
        value, errors = self.field.widget.process_form(self.doc, self.field,
                                                       form, validating=False)
        result = self.field.validate(value, self.doc, errors)
            'relatedItems_file': [fileupload],
        }
        value, errors = self.field.widget.process_form(self.doc, self.field,
                                                       form, validating=False)
        result = self.field.validate(value, self.doc, errors)
        }
        expected = [self.image.UID(), video.UID()], {}
        result = self.field.widget.process_form(self.doc, self.field, form,
                                                validating=False)
        self.assertEqual(expected, result)