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

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

src/p/t/ptahcms-0.5.1/ptahcms/tests/test_blobstorage.py   ptahcms(Download)
    def test_blob(self):
        import ptahcms
 
        blob = ptahcms.blob_storage.add(BytesIO(bytes_('blob data','utf-8')))
        self.assertTrue(ptahcms.IBlob.providedBy(blob))
    def test_blob_metadata(self):
        import ptahcms
 
        blob = ptahcms.blob_storage.add(
            BytesIO(bytes_('blob data','utf-8')),
    def test_blob_info(self):
        import ptahcms
        blob = ptahcms.blob_storage.add(
            BytesIO(bytes_('blob data','utf-8')),
            filename='test.txt', mimetype='text/plain')
    def test_blob_resolver(self):
        import ptahcms
 
        blob = ptahcms.blob_storage.add(BytesIO(bytes_('blob data','utf-8')))
 
 
        blob = ptahcms.blob_storage.add(
            BytesIO(bytes_('blob data','utf-8')),
            filename='test.txt', mimetype='text/plain')