Example #1
0
File: test.py Project: davin/disco
 def urls(self, inputs):
     def serverify(input):
         return '%s/%s' % (self.address, input)
     return rapply(inputs, serverify)
Example #2
0
    def urls(self, inputs):
        def serverify(input):
            return '%s/%s' % (self.address, input)

        return rapply(inputs, serverify)
Example #3
0
 def test_rapply(self):
     for x, y in zip(xrange(7), flatten(rapply(sequence, function))):
         self.assertEquals(function(x), y)