equal
deleted
inserted
replaced
1 # -*- coding: utf-8 -*- |
1 # -*- coding: utf-8 -*- |
2 # copyright 2003-2011 LOGILAB S.A. (Paris, FRANCE), all rights reserved. |
2 # copyright 2003-2012 LOGILAB S.A. (Paris, FRANCE), all rights reserved. |
3 # contact http://www.logilab.fr/ -- mailto:contact@logilab.fr |
3 # contact http://www.logilab.fr/ -- mailto:contact@logilab.fr |
4 # |
4 # |
5 # This file is part of CubicWeb. |
5 # This file is part of CubicWeb. |
6 # |
6 # |
7 # CubicWeb is free software: you can redistribute it and/or modify it under the |
7 # CubicWeb is free software: you can redistribute it and/or modify it under the |
68 description_format=u'text/html', |
68 description_format=u'text/html', |
69 description=u'yo') |
69 description=u'yo') |
70 entity.cw_set(name=u'wf2') |
70 entity.cw_set(name=u'wf2') |
71 self.assertEqual(entity.description, u'yo') |
71 self.assertEqual(entity.description, u'yo') |
72 entity.cw_set(description=u'R&D<p>yo') |
72 entity.cw_set(description=u'R&D<p>yo') |
73 entity.cw_attr_cache.pop('description') |
|
74 self.assertEqual(entity.description, u'R&D<p>yo</p>') |
73 self.assertEqual(entity.description, u'R&D<p>yo</p>') |
75 |
74 |
76 def test_metadata_cwuri(self): |
75 def test_metadata_cwuri(self): |
77 entity = self.request().create_entity('Workflow', name=u'wf1') |
76 entity = self.request().create_entity('Workflow', name=u'wf1') |
78 self.assertEqual(entity.cwuri, self.repo.config['base-url'] + str(entity.eid)) |
77 self.assertEqual(entity.cwuri, self.repo.config['base-url'] + str(entity.eid)) |