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

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

src/c/o/collective.gsa-2.0rc9/collective/gsa/tests/test_integration.py   collective.gsa(Download)
        metadata = data['metadata']
 
        self.assertEqual(data['mimetype'], 'text/html')
        self.assertEqual(metadata['Title'], 'Test document')
        self.failUnless(data['content'].startswith('<![CDATA'))
        data = self.indexer.prepareData(obj)
        metadata = data['metadata']
        self.assertEqual(data['mimetype'], 'application/pdf')
        self.assertEqual(metadata['Title'], 'Test file')
        self.assertEqual(data['content_encoding'], 'base64binary')