Exemple #1
0
 def test_named_children_equivalence(self):
     from xotl.ql.expressions import new
     expr1 = new(object, a=1, b=3)
     expr2 = new(object, b=3, a=1)
     expr3 = new(object, b=1)
     with context(UNPROXIFING_CONTEXT):
         self.assertEqual(expr1, expr2)
         self.assertNotEqual(expr1, expr3)
Exemple #2
0
 def test_named_children_equivalence(self):
     from xotl.ql.expressions import new
     expr1 = new(object, a=1, b=3)
     expr2 = new(object, b=3, a=1)
     expr3 = new(object, b=1)
     with context(UNPROXIFING_CONTEXT):
         self.assertEqual(expr1, expr2)
         self.assertNotEqual(expr1, expr3)
Exemple #3
0
 def test_named_children(self):
     from xotl.ql.expressions import new
     self.assertEqual("new(object, a=1)", str(new('object', a=1)))
Exemple #4
0
 def test_named_children(self):
     from xotl.ql.expressions import new
     self.assertEqual("new(object, a=1)", str(new('object', a=1)))