'It is possible to subclass the result of L{proxyForInterface}.'

def test_subclassing(self):

    class SpecializedProxy(proxyForInterface(IProxiedInterface), ):
        '\n                                                A    specialized    proxy    which    can    decrement    the    number    of    yays.\n                                                '
        def boo(self):
            '\n                                                                Decrement    the    number    of    yays.\n                                                                '
            self.original.yays -= 1
    yayable = Yayable()
    special = SpecializedProxy(yayable)
    self.assertEqual(yayable.yays, 0)
    special.boo()
    self.assertEqual(yayable.yays, (-1))
