'Tests a point class with optimized _make() and _replace()
The optimized versions have no error-checking'

def test_namedtuple_optimize(self):

    class OptimizedPoint(namedtuple('Point', 'x    y'), ):
        _make = classmethod(tuple.__new__)
        def _replace(self, _map=map, **kwds):
            return self._make(_map(kwds.get, ('x', 'y'), self))
    p = OptimizedPoint(11, 22)._replace(x=100)
    self.assertEquals(p.x, 100)
