test/unittest_entity.py
changeset 5768 1e73a466aa69
parent 5636 8138d9c86ac8
child 6099 b22a4a3895df
equal deleted inserted replaced
5766:c397819f2482 5768:1e73a466aa69
   440         e['data'] = Binary('some <em>data</em>')
   440         e['data'] = Binary('some <em>data</em>')
   441         e['data_name'] = 'an html file'
   441         e['data_name'] = 'an html file'
   442         e['data_format'] = 'text/html'
   442         e['data_format'] = 'text/html'
   443         e['data_encoding'] = 'ascii'
   443         e['data_encoding'] = 'ascii'
   444         e._cw.transaction_data = {} # XXX req should be a session
   444         e._cw.transaction_data = {} # XXX req should be a session
   445         self.assertEquals(set(e.cw_adapt_to('IFTIndexable').get_words()),
   445         self.assertEquals(e.cw_adapt_to('IFTIndexable').get_words(),
   446                           set(['an', 'html', 'file', 'du', 'html', 'some', 'data']))
   446                           {'C': [u'du', u'html', 'an', 'html', 'file', u'some', u'data']})
   447 
   447 
   448 
   448 
   449     def test_nonregr_relation_cache(self):
   449     def test_nonregr_relation_cache(self):
   450         req = self.request()
   450         req = self.request()
   451         p1 = req.create_entity('Personne', nom=u'di mascio', prenom=u'adrien')
   451         p1 = req.create_entity('Personne', nom=u'di mascio', prenom=u'adrien')