[test] fix score_entity test stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Tue, 25 Jan 2011 09:20:38 +0100
branchstable
changeset 6885 ea4baa1d16d6
parent 6881 a473bf557456
child 6886 b571d2d32971
[test] fix score_entity test
test/unittest_selectors.py
--- a/test/unittest_selectors.py	Mon Jan 24 16:59:26 2011 +0100
+++ b/test/unittest_selectors.py	Tue Jan 25 09:20:38 2011 +0100
@@ -249,8 +249,8 @@
 
     def test_intscore_entity_selector(self):
         req = self.request()
+        rset = req.execute('Any E WHERE E eid 1')
         selector = score_entity(lambda x: None)
-        rset = req.execute('Any E WHERE E eid 0')
         self.assertEqual(selector(None, req, rset), 0)
         selector = score_entity(lambda x: "something")
         self.assertEqual(selector(None, req, rset), 1)