'Make sure that if we set a non-wrapped fetcher as default,
it will not wrap exceptions.'

def test_notWrapped(self):

    fetcher = fetchers.Urllib2Fetcher()
    fetchers.setDefaultFetcher(fetcher, wrap_exceptions=False)
    self.failIf(isinstance(fetchers.getDefaultFetcher(), fetchers.ExceptionWrappingFetcher))
    try:
        fetchers.fetch('http://invalid.janrain.com/')
    except fetchers.HTTPFetchingError:
        self.fail('Should    not    be    wrapping    exception')
    except:
        exc = sys.exc_info()[1]
        self.failUnless(isinstance(exc, urllib2.URLError), exc)
        pass
    else:
        self.fail('Should    have    raised    an    exception')
