server/test/unittest_security.py
changeset 389 aa180daa2bd4
parent 321 247947250382
child 1398 5fe84a5f7035
equal deleted inserted replaced
388:4e23b542f8ad 389:aa180daa2bd4
   251         cnx.commit()
   251         cnx.commit()
   252         rset = cu.execute('Any X WHERE X eid %(x)s', {'x': aff2}, 'x')
   252         rset = cu.execute('Any X WHERE X eid %(x)s', {'x': aff2}, 'x')
   253         self.assertEquals(rset.rows, [[aff2]])
   253         self.assertEquals(rset.rows, [[aff2]])
   254         # more cache test w/ NOT eid
   254         # more cache test w/ NOT eid
   255         rset = cu.execute('Affaire X WHERE NOT X eid %(x)s', {'x': eid}, 'x')
   255         rset = cu.execute('Affaire X WHERE NOT X eid %(x)s', {'x': eid}, 'x')
   256         self.assertEquals(rset.rows, [])
   256         self.assertEquals(rset.rows, [[aff2]])
   257         rset = cu.execute('Affaire X WHERE NOT X eid %(x)s', {'x': aff2}, 'x')
   257         rset = cu.execute('Affaire X WHERE NOT X eid %(x)s', {'x': aff2}, 'x')
   258         self.assertEquals(rset.rows, [])
   258         self.assertEquals(rset.rows, [])
   259         
   259         
   260     def test_read_erqlexpr_has_text1(self):
   260     def test_read_erqlexpr_has_text1(self):
   261         aff1 = self.execute("INSERT Affaire X: X sujet 'cool'")[0][0]
   261         aff1 = self.execute("INSERT Affaire X: X sujet 'cool'")[0][0]