Esempio n. 1
0
 def _getAllVariables(self):
     """Retrieve the list of all variables, to be returned"""
     if self.parent1 and self.parent2:
         return list2set(self.parent1._getAllVariables() +
                         self.parent2._getAllVariables())
     else:
         return list2set(self.top.bindings.keys())
Esempio n. 2
0
 def test_util_list2set(self):
     base = [Literal('foo'), self.x]
     r = util.list2set(base + base)
     self.assertTrue(r == base)
Esempio n. 3
0
 def test_util_list2set(self):
     base = [Literal('foo'), self.x]
     r = util.list2set(base+base)
     self.assert_(r == base)
Esempio n. 4
0
 def _getAllVariables(self):
    """Retrieve the list of all variables, to be returned"""
    if self.parent1 and self.parent2:
        return list2set(self.parent1._getAllVariables() + self.parent2._getAllVariables())
    else:
        return list2set(self.top.bindings.keys())