equal
deleted
inserted
replaced
13 # FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more |
13 # FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more |
14 # details. |
14 # details. |
15 # |
15 # |
16 # You should have received a copy of the GNU Lesser General Public License along |
16 # You should have received a copy of the GNU Lesser General Public License along |
17 # with CubicWeb. If not, see <http://www.gnu.org/licenses/>. |
17 # with CubicWeb. If not, see <http://www.gnu.org/licenses/>. |
18 """ |
|
19 |
|
20 """ |
|
21 from cubicweb.goa.testlib import * |
18 from cubicweb.goa.testlib import * |
22 |
19 |
23 from cubicweb import Binary |
20 from cubicweb import Binary |
24 |
21 |
25 from logilab.common.testlib import unittest_main |
22 from logilab.common.testlib import unittest_main |
610 |
607 |
611 |
608 |
612 def test_error_unknown_eid(self): |
609 def test_error_unknown_eid(self): |
613 rset = self.req.execute('Any X WHERE X eid %(x)s', {'x': '1234'}) |
610 rset = self.req.execute('Any X WHERE X eid %(x)s', {'x': '1234'}) |
614 self.assertEquals(len(rset), 0) |
611 self.assertEquals(len(rset), 0) |
615 self.blog.delete() |
612 self.blog.cw_delete() |
616 rset = self.req.execute('Any X WHERE X eid %(x)s', {'x': self.blog.eid}) |
613 rset = self.req.execute('Any X WHERE X eid %(x)s', {'x': self.blog.eid}) |
617 self.assertEquals(len(rset), 0) |
614 self.assertEquals(len(rset), 0) |
618 |
615 |
619 def test_nonregr_inlined_relation(self): |
616 def test_nonregr_inlined_relation(self): |
620 eid = self.execute('INSERT YamsEntity X: X inlined_relation Y WHERE Y eid %(y)s', |
617 eid = self.execute('INSERT YamsEntity X: X inlined_relation Y WHERE Y eid %(y)s', |