def testAST(self): fun = self.pgm[1].value.value self.assertEquals(function, type(fun)) self.assertEquals(set(['a']), needs(fun))
def testNeeds(self): fun = self.pgm[1].value.value self.assertEquals(function, type(fun)) self.assertEquals(set('z'), needs(fun))
def testNeeds(self): self.assertEquals(set(), needs(self.pgm[0].value))