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())
def test_util_list2set(self): base = [Literal('foo'), self.x] r = util.list2set(base + base) self.assertTrue(r == base)
def test_util_list2set(self): base = [Literal('foo'), self.x] r = util.list2set(base+base) self.assert_(r == base)