[entities/test] add failing test for cw_instantiate stable
authorAurelien Campeas <aurelien.campeas@logilab.fr>
Tue, 12 Apr 2011 17:32:06 +0200
branchstable
changeset 7212 040d3597444f
parent 7210 29cd85f20ccb
child 7213 7644e68c4e9f
[entities/test] add failing test for cw_instantiate
entities/test/unittest_base.py
--- a/entities/test/unittest_base.py	Tue Apr 12 13:05:16 2011 +0200
+++ b/entities/test/unittest_base.py	Tue Apr 12 17:32:06 2011 +0200
@@ -111,6 +111,11 @@
                                'creation_date', 'modification_date', 'cwuri', 'eid'))
                           )
 
+    def test_cw_instantiate_object_relation(self):
+        """ a weird non regression test """
+        e = self.execute('CWUser U WHERE U login "member"').get_entity(0, 0)
+        self.request().create_entity('CWGroup', name=u'logilab', reverse_in_group=e)
+
 
 class InterfaceTC(CubicWebTC):