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

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

src/a/r/archetypes.schematuning-1.2/src/archetypes/schematuning/tests/test_fields.py   archetypes.schematuning(Download)
    def test_download_filename_encoding(self):
        # When downloading, the filename is converted to ASCII:
        self.field.setFilename(self.dummy, '\xc3\xbcberzeugen')
        self.field.download(self.dummy, no_output=True)
        self.assertEqual(self.response.headers['content-disposition'],

src/a/r/archetypes.schematuning-1.2/src/archetypes/schematuning/tests/test_update_schema.py   archetypes.schematuning(Download)
        doc.reindexObject()
        mimetype = doc.getField('body').getContentType(doc)
        self.assertEqual(mimetype, 'text/x-rst')
 
        # update schema for all DDocuments and check if our type is preserved
        doc = self.folder.mydoc
        mimetype = doc.getField('body').getContentType(doc)
        self.assertEqual(mimetype, 'text/x-rst')