# Path: infi/pyutils/method_map.py
# class MethodMap(object):
#     def __init__(self, decorator=Identity):
#         super(MethodMap, self).__init__()
#         self._map = {}
#         self._decorate = decorator
#     def registering(self, key):
#         return functools.partial(self.register, key)
#     def register(self, key, value):
#         self._map[key] = self._decorate(value)
#         return value
#     def __get__(self, instance, owner):
#         return Binder(self._map, instance)


import platform
from .test_utils import TestCase
from infi.pyutils.method_map import MethodMap

class MethodMapTest(TestCase):
    def test__method_map(self):
        class MyObj(object):

# Path: infi/pyutils/method_map.py
# class MethodMap(object):
#     def __init__(self, decorator=Identity):
#         super(MethodMap, self).__init__()
#         self._map = {}
#         self._decorate = decorator
#     def registering(self, key):
#         return functools.partial(self.register, key)
#     def register(self, key, value):
#         self._map[key] = self._decorate(value)
#         return value
#     def __get__(self, instance, owner):
#         return Binder(self._map, instance)


# Path: tests/test__method_map.py
import platform
from .test_utils import TestCase
from infi.pyutils.method_map import MethodMap


class MethodMapTest(TestCase):
    def test__method_map(self):
        class MyObj(object):

            METHODS = MethodMap()