server/test/unittest_multisources.py
branchstable
changeset 3896 85e9afa030a5
parent 3815 50b87f759b5d
child 3998 94cc7cad3d2d
child 4212 ab6573088b4a
equal deleted inserted replaced
3893:74f216b69628 3896:85e9afa030a5
   182         self.assertEquals(rset.rows[0][0], crset[0][0])
   182         self.assertEquals(rset.rows[0][0], crset[0][0])
   183 
   183 
   184     def test_attr_unification_1(self):
   184     def test_attr_unification_1(self):
   185         n1 = self.execute('INSERT Note X: X type "AFFREF"')[0][0]
   185         n1 = self.execute('INSERT Note X: X type "AFFREF"')[0][0]
   186         n2 = self.execute('INSERT Note X: X type "AFFREU"')[0][0]
   186         n2 = self.execute('INSERT Note X: X type "AFFREU"')[0][0]
   187         self.set_debug('DBG_SQL|DBG_MS')
       
   188         rset = self.execute('Any X,Y WHERE X is Note, Y is Affaire, X type T, Y ref T')
   187         rset = self.execute('Any X,Y WHERE X is Note, Y is Affaire, X type T, Y ref T')
   189         self.set_debug(None)
       
   190         self.assertEquals(len(rset), 1, rset.rows)
   188         self.assertEquals(len(rset), 1, rset.rows)
   191 
   189 
   192     def test_attr_unification_2(self):
   190     def test_attr_unification_2(self):
   193         ec2 = cu.execute('INSERT Card X: X title "AFFREF"')[0][0]
   191         ec2 = cu.execute('INSERT Card X: X title "AFFREF"')[0][0]
   194         cnx2.commit()
   192         cnx2.commit()