Beispiel #1
0
 def test_methodimap(self):
     result = methodimap(self.method, self.values)
     self.assertIsInstance(result, itertools.imap)
     self.assertEqual(list(result), self.expected)
Beispiel #2
0
 def headers(self):
     return reduce(
         lambda x, y: dict(x, **y),
         methodimap('_asdict', self._headers), {}
     )
Beispiel #3
0
 def headers(self):
     return reduce(lambda x, y: dict(x, **y),
                   methodimap('_asdict', self._headers), {})