'The ``loader`` supplied to ``lazy_loading_proxy_for_interface`` is
called as a result of resolving the method that is being called.
Exceptions raised from the ``loader`` must be caught before the method
is called.'

def test_loader_exceptions_raised(self):

    class SomeException(Exception, ):
        pass
    def loader():
        raise SomeException()
    proxy = lazy_loading_proxy_for_interface(interface=AnInterface, loader=loader)
    self.assertRaises(SomeException, getattr, proxy, 'method_a')
