'The class created from L{proxyForInterface} passes methods on an
interface to the object which is passed to its constructor.'

def test_proxyMethod(self):

    klass = proxyForInterface(IProxiedInterface)
    yayable = Yayable()
    proxy = klass(yayable)
    proxy.yay()
    self.assertEqual(proxy.yay(), 2)
    self.assertEqual(yayable.yays, 2)
