'Ensure that exceptions are bubbled through from fetchers
when making associations'

def test_error_exception_unwrapped(self):

    self.fetcher = ExceptionRaisingMockFetcher()
    fetchers.setDefaultFetcher(self.fetcher, wrap_exceptions=False)
    self.failUnlessRaises(self.fetcher.MyException, self.consumer._makeKVPost, Message.fromPostArgs({'mode': 'associate'}), 'http://server_url')
    e = OpenIDServiceEndpoint()
    e.server_url = 'some://url'
    self.failUnlessRaises(self.fetcher.MyException, self.consumer._getAssociation, e)
    self.failUnlessRaises(self.fetcher.MyException, self.consumer._checkAuth, Message.fromPostArgs({'openid.signed': ''}), 'some://url')
