test/unittest_utils.py
changeset 6142 8bc6eac1fac1
parent 5726 c3b99606644d
child 6366 1806148d6ce8
--- a/test/unittest_utils.py	Wed Aug 25 10:29:07 2010 +0200
+++ b/test/unittest_utils.py	Wed Aug 25 10:29:18 2010 +0200
@@ -140,14 +140,14 @@
 
     def test_encoding_bare_entity(self):
         e = Entity(None)
-        e['pouet'] = 'hop'
+        e.cw_attr_cache['pouet'] = 'hop'
         e.eid = 2
         self.assertEquals(json.loads(self.encode(e)),
                           {'pouet': 'hop', 'eid': 2})
 
     def test_encoding_entity_in_list(self):
         e = Entity(None)
-        e['pouet'] = 'hop'
+        e.cw_attr_cache['pouet'] = 'hop'
         e.eid = 2
         self.assertEquals(json.loads(self.encode([e])),
                           [{'pouet': 'hop', 'eid': 2}])