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.schematuning-1.2/src/archetypes/schematuning/at_tests/test_fields.py archetypes.schematuning(Download)
errors = {} dummy.validate(errors=errors) self.failIf(errors, errors) def test_required(self):
if f_name not in err_fields: failures.append(f_name) self.failIf(failures, "%s failed to report error." % failures) def test_static_vocabulary(self):
def test_download_from_textfield(self): # make sure field data doesn't get transformed when using the # download method value = self.field.download(self.dummy, no_output=True) self.failIf(isinstance(value, str))
src/a/r/archetypes.schematuning-1.2/src/archetypes/schematuning/at_tests/test_storage.py archetypes.schematuning(Download)
self.failUnless(hasattr(dummy, 'atextfield')) field.setStorage(dummy, MetadataStorage()) self.failIf(hasattr(dummy, 'atextfield')) self.failUnless(dummy._md.has_key('atextfield')) field.setStorage(dummy, AttributeStorage()) self.failIf(dummy._md.has_key('atextfield'))