def urls(self, inputs): def serverify(input): return '%s/%s' % (self.address, input) return rapply(inputs, serverify)
def test_rapply(self): for x, y in zip(xrange(7), flatten(rapply(sequence, function))): self.assertEquals(function(x), y)