1
# -*- coding: utf-8 -*-
5
from ..tools.func import compose
7
class TestCompose(unittest2.TestCase):
9
str_add = compose(str, lambda a, b: a + b)
14
def test_decorator(self):
15
""" ensure compose() can be partially applied as a decorator
17
@functools.partial(compose, unicode)
21
self.assertEqual(mul(5, 42), u"210")