'If ``transform`` is supplied with a path containing multiple segments,
the operation is performed on the object corresponding to the last
segment.'

def test_transform_deep_path(self):

    proxy = _TransformProxy(pmap({'a': pmap({'b': pmap({'c': 1})})}))
    proxy.transform(['a', 'b'], (lambda o: o.set('c', 2)))
    self.assertEqual(pmap({'a': pmap({'b': pmap({'c': 2})})}), proxy.commit())
