test/unittest_entity.py
changeset 4460 5c22869079b9
parent 4252 6c4f109c2b03
child 4467 0e73d299730a
--- a/test/unittest_entity.py	Fri Feb 05 07:25:16 2010 +0100
+++ b/test/unittest_entity.py	Fri Feb 05 08:11:32 2010 +0100
@@ -458,6 +458,7 @@
         self.assertEquals(person.rest_path(), 'personne/doe')
         # ambiguity test
         person2 = req.create_entity('Personne', prenom=u'remi', nom=u'doe')
+        person.clear_all_caches()
         self.assertEquals(person.rest_path(), 'personne/eid/%s' % person.eid)
         self.assertEquals(person2.rest_path(), 'personne/eid/%s' % person2.eid)
         # unique attr with None value (wikiid in this case)