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

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

src/a/r/archetypes.uploadreferencewidget-0.2.1/archetypes/uploadreferencewidget/tests/test_widget.py   archetypes.uploadreferencewidget(Download)
        expected = destination.objectValues('ATFile')
        result = obj.getRefs('relatesTo')
        self.assertEqual(expected, result)
 
    def testSelectExistingContentProcessWidget(self):
        result = self.field.widget.process_form(self.doc, self.field, form,
                                                validating=False)
        self.assertEqual(expected, result)
 
    def testValidateUploadWithoutSelectAFileInARequiredField(self):
                                                       form, validating=False)
        result = self.field.validate(value, self.doc, errors)
        self.assertEqual(result, None)
 
        # Finally, upload a valid file. Again, no error:
                                                       form, validating=False)
        result = self.field.validate(value, self.doc, errors)
        self.assertEqual(result, None)
 
    def testSelectMultipleExistingContentProcessWidget(self):
        result = self.field.widget.process_form(self.doc, self.field, form,
                                                validating=False)
        self.assertEqual(expected, result)
 
    def testSelectExistingContentCreateReference(self):